Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
139 references to Lengths
System.Numerics.Tensors (139)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
28
_length = TensorShape.GetProduct(tensor.
Lengths
[..dimension]);
30
_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.
Lengths
[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
294
public int Rank =>
Lengths
.Length;
534
Tensor<T> tmp = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (105)
58
return Broadcast(source, lengthsSource.
Lengths
);
557
Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.
Lengths
);
718
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
899
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1080
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1261
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1623
if (tensor.
Lengths
.SequenceEqual(lengths))
1636
GetReshapeStrides(tensor.
Lengths
, tensor.Strides, tensor.IsDense, newLengths, strides);
1792
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1806
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1843
&& tensor.
Lengths
.SequenceEqual(destination.Lengths)
1846
if ((tensor._shape.LinearLength == 1) || (dimension >= 0 && tensor.
Lengths
[dimension] == 1))
1898
else if (tensor.
Lengths
[dimension] == 1)
1948
|| !tensor.
Lengths
.SequenceEqual(other.
Lengths
))
2042
if (tensor.
Lengths
[(int)dimension] % splitCount != 0)
2050
tensor.
Lengths
.CopyTo(newLengths);
2269
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2271
if (tensor.
Lengths
[i] != 1)
2273
lengths[index] = tensor.
Lengths
[i];
2285
if (tensor.
Lengths
[dimension] != 1)
2292
tensor.
Lengths
[..dimension].CopyTo(lengths);
2293
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2414
sb.AppendJoin(", ", tensor.
Lengths
);
2423
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2439
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2457
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..], tensor.IsPinned);
2469
if (length != tensor.
Lengths
[0])
2505
if (length != tensor.
Lengths
[0])
2699
if (dimension > tensor.
Lengths
.Length)
2706
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2707
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2739
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2766
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2793
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2820
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2847
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2874
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2901
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2928
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2983
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3010
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3066
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3093
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3121
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3148
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3192
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3219
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3248
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3279
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3310
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3340
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3395
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3422
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3475
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3512
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3571
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3598
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3623
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3646
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3669
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3692
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3715
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3795
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3818
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3842
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
3982
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4009
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4056
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4082
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4109
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4136
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4163
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4190
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4254
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4317
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4380
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4443
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4506
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4569
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4632
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4695
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4733
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4780
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4803
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4839
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4862
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4886
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4912
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4939
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4964
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4987
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5011
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5034
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5058
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5083
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5108
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5131
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5157
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5184
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5256
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5279
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5302
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5325
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5348
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Addition.cs (1)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseAnd.cs (1)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (1)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Decrement.cs (1)
15
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Division.cs (2)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
43
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_ExclusiveOr.cs (1)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Increment.cs (1)
15
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (1)
16
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (1)
30
Tensor<T> destination = CreateFromShape<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_OnesComplement.cs (1)
15
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_RightShift.cs (1)
16
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_Subtraction.cs (2)
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
43
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (1)
14
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_UnsignedRightShift.cs (1)
16
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\TensorOperation.cs (14)
37
&& source.
Lengths
.SequenceEqual(destination.Lengths)
67
ReadOnlySpan<nint> sourceLengths = source.
Lengths
;
294
ReadOnlyTensorSpan<TArg> optimizedSource = x.
Lengths
.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape);
295
if (destination.FlattenedLength != 0 && optimizedSource.
Lengths
.SequenceEqual(destination.Lengths))
443
ReadOnlyTensorSpan<TArg1> optimizedX = x.
Lengths
.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape);
444
ReadOnlyTensorSpan<TArg2> optimizedY = y.
Lengths
.SequenceEqual(destination.Lengths) ? y : BroadcastSource(y, destination._shape);
446
optimizedX.
Lengths
.SequenceEqual(destination.Lengths) &&
447
optimizedY.
Lengths
.SequenceEqual(destination.Lengths))
535
ReadOnlyTensorSpan<TArg1> optimizedSource = x.
Lengths
.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape);
536
if (destination.FlattenedLength != 0 && optimizedSource.
Lengths
.SequenceEqual(destination.Lengths))
582
ReadOnlyTensorSpan<TArg> optimizedSource = y.
Lengths
.SequenceEqual(destination.Lengths) ? y : BroadcastSource(y, destination._shape);
583
if (destination.FlattenedLength != 0 && optimizedSource.
Lengths
.SequenceEqual(destination.Lengths))
694
ReadOnlySpan<nint> xLengths = x.
Lengths
;
695
ReadOnlySpan<nint> yLengths = y.
Lengths
;