Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
21 references to Lengths
System.Numerics.Tensors (21)
System\Numerics\Tensors\netcore\Tensor.cs (15)
238
if (!TensorShape.AreLengthsTheSame(destination.
Lengths
, lengths))
273
hasMore = TensorShape.AdjustToNextIndex(ranges, dimension - 1, destination.
Lengths
);
1485
if (tensor.
Lengths
.SequenceEqual(lengths))
1529
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1538
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1777
&& tensor.
Lengths
.SequenceEqual(other.Lengths)
1968
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
1970
if (tensor.
Lengths
[i] != 1)
1972
lengths[index] = tensor.
Lengths
[i];
1984
if (tensor.
Lengths
[dimension] != 1)
1991
tensor.
Lengths
[..dimension].CopyTo(lengths);
1992
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2367
if (dimension > tensor.
Lengths
.Length)
2374
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2375
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\TensorDimensionSpan_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\TensorOperation.cs (2)
133
destinationIndexes[0] = destination.
Lengths
[0];
136
destinationIndexes[i] = destination.
Lengths
[i] - 1;
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
192
public int Rank =>
Lengths
.Length;
347
result = Tensor.Create<T>(
Lengths
, IsPinned);