Implemented interface member:
property
Rank
System.Numerics.Tensors.IReadOnlyTensor<TSelf, T>.Rank
33 references to Rank
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (8)
229
if (ranges.Length !=
Rank
)
325
if (ranges.Length !=
Rank
)
587
_curIndices = new nint[_tensor.
Rank
];
588
_curIndices[_tensor.
Rank
- 1] = -1;
594
TensorSpanHelpers.AdjustIndexes(_tensor.
Rank
- 1, 1, ref _curIndices, _tensor.Lengths);
606
_curIndices[_tensor.
Rank
- 1] = -1;
646
int n =
Rank
;
675
maximumLengths = (from number in Enumerable.Range(0,
Rank
) select (nint)5).ToArray();
System\Numerics\Tensors\netcore\TensorExtensions.cs (25)
2646
if (tensor.
Rank
== 1)
2653
nint[] lengths = new nint[tensor.
Rank
];
2661
int[] tempPermutation = new int[tensor.
Rank
];
2662
for (int i = 0; i < tensor.
Rank
; i++)
2664
lengths[i] = tensor._lengths[tensor.
Rank
- 1 - i];
2665
tempPermutation[i] = tensor.
Rank
- 1 - i;
2687
if (outTensor.
Rank
> 6)
2689
indicesArray = ArrayPool<nint>.Shared.Rent(outTensor.
Rank
);
2690
indexes = indicesArray.AsSpan(0, outTensor.
Rank
);
2693
permutedIndicesArray = ArrayPool<nint>.Shared.Rent(outTensor.
Rank
);
2694
permutedIndices = permutedIndicesArray.AsSpan(0, outTensor.
Rank
);
2700
indexes = stackalloc nint[outTensor.
Rank
];
2702
permutedIndices = stackalloc nint[outTensor.
Rank
];
2709
TensorSpanHelpers.AdjustIndexes(outTensor.
Rank
- 1, 1, indexes, tensor._lengths);
2772
if (lengthOffset < tensor.
Rank
&& arrLengths[i] == tensor.Lengths[lengthOffset])
2776
if (lengthOffset == tensor.
Rank
)
3281
if (dimension >= tensor.
Rank
)
3460
dimension = tensors[0].
Rank
- dimension;
3605
int[] dimension = Enumerable.Range(0, tensor.
Rank
).ToArray();
3606
int temp = dimension[tensor.
Rank
- 1];
3607
dimension[tensor.
Rank
- 1] = dimension[tensor.
Rank
- 2];
3608
dimension[tensor.
Rank
- 2] = temp;
3667
dimension = tensor.
Rank
- dimension;
3673
if (dimension == tensor.
Rank
)