Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
34 references to Lengths
System.Numerics.Tensors (34)
System\Numerics\Tensors\netcore\Tensor.cs (33)
143
nint sumOfAxis = tensors[0].
Lengths
[dimension];
152
if (tensors[0].
Lengths
[j] != tensors[i].
Lengths
[j])
158
sumOfAxis += tensors[i].
Lengths
[dimension];
163
tensors[0].
Lengths
.CopyTo(lengths);
219
nint sumOfAxis = tensors[0].
Lengths
[dimension];
229
if (tensors[0].
Lengths
[j] != tensors[i].
Lengths
[j])
233
sumOfAxis += tensors[i].
Lengths
[dimension];
238
tensors[0].
Lengths
.CopyTo(lengths);
1388
if (!dimensions.IsEmpty && dimensions.Length != tensor.
Lengths
.Length)
1401
newLengths[i] = tensor.
Lengths
[tensor.Rank - 1 - i];
1410
if (dimensions[i] >= tensor.
Lengths
.Length || dimensions[i] < 0)
1414
newLengths[i] = tensor.
Lengths
[dimensions[i]];
1440
if (tensor.
Lengths
.SequenceEqual(lengths))
1484
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1491
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1928
int removalCount = tensor.
Lengths
.Count(1);
1932
for (int i = 0; i < tensor.
Lengths
.Length; i++)
1934
if (tensor.
Lengths
[i] != 1)
1936
lengths[index] = tensor.
Lengths
[i];
1951
if (tensor.
Lengths
[dimension] != 1)
1956
for (int i = 0; i < tensor.
Lengths
.Length; i++)
1960
lengths[index] = tensor.
Lengths
[i];
2194
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2234
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2354
if (tensor.
Lengths
.Length < 2)
2361
tensor.
Lengths
.CopyTo(lengths);
2435
if (dimension > tensor.
Lengths
.Length)
2442
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2443
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
304
result = Tensor.Create<T>(
Lengths
, IsPinned);