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);
1371
if (!dimensions.IsEmpty && dimensions.Length != tensor.
Lengths
.Length)
1384
newLengths[i] = tensor.
Lengths
[tensor.Rank - 1 - i];
1393
if (dimensions[i] >= tensor.
Lengths
.Length || dimensions[i] < 0)
1397
newLengths[i] = tensor.
Lengths
[dimensions[i]];
1423
if (tensor.
Lengths
.SequenceEqual(lengths))
1467
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1474
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1911
int removalCount = tensor.
Lengths
.Count(1);
1915
for (int i = 0; i < tensor.
Lengths
.Length; i++)
1917
if (tensor.
Lengths
[i] != 1)
1919
lengths[index] = tensor.
Lengths
[i];
1934
if (tensor.
Lengths
[dimension] != 1)
1939
for (int i = 0; i < tensor.
Lengths
.Length; i++)
1943
lengths[index] = tensor.
Lengths
[i];
2177
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2217
if (!tensors[0].
Lengths
.SequenceEqual(tensors[i].
Lengths
))
2337
if (tensor.
Lengths
.Length < 2)
2344
tensor.
Lengths
.CopyTo(lengths);
2418
if (dimension > tensor.
Lengths
.Length)
2425
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2426
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
307
result = Tensor.Create<T>(
Lengths
, IsPinned);