Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
33 references to Lengths
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (32)
139
nint sumOfAxis = tensors[0].
Lengths
[dimension];
148
if (tensors[0].
Lengths
[j] != tensors[i].
Lengths
[j])
154
sumOfAxis += tensors[i].
Lengths
[dimension];
159
tensors[0].
Lengths
.CopyTo(lengths);
215
nint sumOfAxis = tensors[0].
Lengths
[dimension];
225
if (tensors[0].
Lengths
[j] != tensors[i].
Lengths
[j])
229
sumOfAxis += tensors[i].
Lengths
[dimension];
234
tensors[0].
Lengths
.CopyTo(lengths);
1276
if (!dimensions.IsEmpty && dimensions.Length != tensor.
Lengths
.Length)
1288
newLengths[i] = tensor.
Lengths
[tensor.Rank - 1 - i];
1296
if (dimensions[i] >= tensor.
Lengths
.Length || dimensions[i] < 0)
1300
newLengths[i] = tensor.
Lengths
[dimensions[i]];
1324
if (tensor.
Lengths
.SequenceEqual(lengths))
1368
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1375
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1813
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
1815
if (tensor.
Lengths
[i] != 1)
1817
lengths[index] = tensor.
Lengths
[i];
1829
if (tensor.
Lengths
[dimension] != 1)
1836
tensor.
Lengths
[..dimension].CopyTo(lengths);
1837
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2008
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2048
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2217
if (tensor.
Lengths
.Length < 2)
2223
tensor.
Lengths
.CopyTo(lengths);
2291
if (dimension > tensor.
Lengths
.Length)
2298
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2299
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
266
result = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);