Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
136 references to Lengths
System.Numerics.Tensors (136)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
34
ReadOnlySpan<nint> lengths = tensor.
Lengths
;
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 (97)
59
return Broadcast(source, lengthsSource.
Lengths
);
327
nint length = source.
Lengths
[dimension];
689
Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.
Lengths
);
850
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1031
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1212
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1393
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1765
if (tensor.
Lengths
.SequenceEqual(lengths))
1996
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
2010
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
2049
if ((tensor._shape.LinearLength == 1) || (dimension >= 0 && tensor.
Lengths
[dimension] == 1))
2195
else if (tensor.
Lengths
[dimension] == 1)
2277
|| !TensorShape.AreLengthsEquivalent(tensor.
Lengths
, other.
Lengths
))
2643
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2645
if (tensor.
Lengths
[i] != 1)
2647
lengths[index] = tensor.
Lengths
[i];
2659
if (tensor.
Lengths
[dimension] != 1)
2666
tensor.
Lengths
[..dimension].CopyTo(lengths);
2667
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2835
sb.AppendJoin(", ", tensor.
Lengths
);
2844
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2861
ReadOnlySpan<nint> lengths = tensor.
Lengths
;
2930
if (length != tensor.
Lengths
[0])
3193
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3220
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3247
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3274
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3301
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3328
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3355
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3382
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3437
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3464
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3520
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3547
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3575
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3602
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3646
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3673
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3702
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3733
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3764
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3794
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3849
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3876
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3929
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3966
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4025
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4052
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4077
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4100
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4123
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4146
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4169
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4249
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4272
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4296
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
4364
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4391
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4438
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4464
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4491
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4518
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4545
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4572
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4636
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4699
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4762
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4825
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4888
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4951
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5014
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5077
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5115
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5162
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5185
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
5221
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5244
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5268
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5294
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5321
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5346
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5369
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5393
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5416
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5440
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5465
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5490
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5513
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5539
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5566
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5638
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5661
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5684
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5707
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5730
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 (20)
162
ReadOnlyTensorSpan<T> input = source.
Lengths
.SequenceEqual(destination.Lengths) ? source : BroadcastSource(source, destination._shape);
408
ReadOnlySpan<nint> sourceLengths = source.
Lengths
;
655
if (x.IsDense && y.IsDense && x.
Lengths
.SequenceEqual(y.
Lengths
))
696
ReadOnlyTensorSpan<TArg> optimizedX = x.
Lengths
.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape);
697
ReadOnlyTensorSpan<TArg> optimizedY = y.
Lengths
.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape);
698
if (optimizedX.IsDense && optimizedY.IsDense && optimizedX.
Lengths
.SequenceEqual(optimizedY.
Lengths
))
928
ReadOnlyTensorSpan<TArg> optimizedSource = x.
Lengths
.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape);
993
ReadOnlyTensorSpan<TArg> source = x.
Lengths
.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape);
1158
ReadOnlyTensorSpan<TArg1> optimizedX = x.
Lengths
.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape);
1159
ReadOnlyTensorSpan<TArg2> optimizedY = y.
Lengths
.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape);
1228
if (x.IsDense && y.IsDense && x.
Lengths
.SequenceEqual(y.
Lengths
))
1241
ReadOnlyTensorSpan<TArg> optimizedX = x.
Lengths
.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape);
1242
ReadOnlyTensorSpan<TArg> optimizedY = y.
Lengths
.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape);
1243
if (optimizedX.IsDense && optimizedY.IsDense && optimizedX.
Lengths
.SequenceEqual(optimizedY.
Lengths
))
1294
ReadOnlyTensorSpan<TArg1> optimizedSource = x.
Lengths
.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape);
1351
ReadOnlyTensorSpan<TArg> optimizedSource = y.
Lengths
.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape);