Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
134 references to Lengths
System.Numerics.Tensors (134)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
28
_length = TensorPrimitives.Product(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)
288
public int Rank =>
Lengths
.Length;
527
Tensor<T> tmp = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (109)
57
return Broadcast(source, lengthsSource.
Lengths
);
479
Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.
Lengths
);
640
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
821
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1002
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1183
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1528
if (tensor.
Lengths
.SequenceEqual(lengths))
1573
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1580
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1705
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1719
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1763
for (int i = (int)tensor.
Lengths
[dimension]; i > 0; i--)
1766
dstIndexes[dimension] = new NRange(tensor.
Lengths
[dimension] - i, tensor.
Lengths
[dimension] - i + 1);
1794
|| !tensor.
Lengths
.SequenceEqual(other.
Lengths
))
1867
if (tensor.
Lengths
[(int)dimension] % splitCount != 0)
1874
nint[] newLengths = [.. tensor.
Lengths
];
2063
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2065
if (tensor.
Lengths
[i] != 1)
2067
lengths[index] = tensor.
Lengths
[i];
2079
if (tensor.
Lengths
[dimension] != 1)
2086
tensor.
Lengths
[..dimension].CopyTo(lengths);
2087
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2197
sb.AppendJoin(", ", tensor.
Lengths
);
2206
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2222
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2240
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..], tensor.IsPinned);
2252
if (length != tensor.
Lengths
[0])
2288
if (length != tensor.
Lengths
[0])
2481
if (dimension > tensor.
Lengths
.Length)
2488
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2489
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2521
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2548
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2575
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2602
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2629
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2656
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2683
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2710
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2738
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2765
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2792
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2821
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2848
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2875
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2903
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2930
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2974
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3001
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3030
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3061
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3092
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3122
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3135
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3177
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3204
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3257
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3294
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3353
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3380
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3405
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3428
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3451
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3474
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3497
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3577
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3600
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3624
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
3776
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3803
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3850
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3876
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3903
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3930
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3957
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3984
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4048
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4111
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4174
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4237
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4300
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4363
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4426
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4489
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4527
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4574
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4597
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4633
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4656
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4680
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4706
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4733
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4758
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4781
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4805
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4828
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4852
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4877
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4902
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4925
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4951
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4979
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5051
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5074
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5097
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5120
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5143
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 (2)
17
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
30
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (2)
17
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
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 (2)
17
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
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 (2)
372
ReadOnlySpan<nint> xLengths = x.
Lengths
;
373
ReadOnlySpan<nint> yLengths = y.
Lengths
;