19 references to Lengths
System.Numerics.Tensors (19)
System\Numerics\Tensors\netcore\Tensor.cs (16)
241
if (!TensorShape.AreLengthsTheSame(destination.
Lengths
, lengths))
275
hasMore = IncrementIndexes(ranges, dimension, destination.
Lengths
);
1513
if (tensor.
Lengths
.SequenceEqual(lengths))
1557
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1566
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1805
&& tensor.
Lengths
.SequenceEqual(other.Lengths)
2010
int removalCount = tensor.
Lengths
.Count(1);
2014
for (int i = 0; i < tensor.
Lengths
.Length; i++)
2016
if (tensor.
Lengths
[i] != 1)
2018
lengths[index] = tensor.
Lengths
[i];
2033
if (tensor.
Lengths
[dimension] != 1)
2038
for (int i = 0; i < tensor.
Lengths
.Length; i++)
2042
lengths[index] = tensor.
Lengths
[i];
2472
if (dimension > tensor.
Lengths
.Length)
2479
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2480
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
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.cs (1)
218
public int Rank =>
Lengths
.Length;