Implemented interface member:
property
Rank
System.Numerics.Tensors.IReadOnlyTensor.Rank
26 references to Rank
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\Tensor.cs (25)
131
if (dimension < -1 || dimension > tensors[0].
Rank
)
142
if (tensors[0].
Rank
!= tensors[i].
Rank
)
144
for (int j = 0; j < tensors[0].
Rank
; j++)
158
nint[] lengths = new nint[tensors[0].
Rank
];
204
if (dimension < -1 || dimension > tensors[0].
Rank
)
216
int rank = tensors[0].
Rank
;
219
if (rank != tensors[i].
Rank
)
1270
if (tensor.
Rank
== 1)
1279
scoped Span<nint> newLengths = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<nint> lengthsRentedBuffer);
1280
scoped Span<nint> newStrides = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
1286
for (int i = 0; i < tensor.
Rank
; i++)
1288
newLengths[i] = tensor.Lengths[tensor.
Rank
- 1 - i];
1289
newStrides[i] = tensor.Strides[tensor.
Rank
- 1 - i];
1368
if (lengthOffset < tensor.
Rank
&& newLengths[i] == tensor.Lengths[lengthOffset])
1372
if (lengthOffset == tensor.
Rank
)
1801
int rank = tensor.
Rank
;
2014
if (dimension < 0 || dimension > tensors[0].
Rank
)
2054
if (dimension < 0 || dimension > tensors[0].
Rank
)
2220
scoped Span<nint> lengths = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<nint> lengthsRentedBuffer);
2221
scoped Span<nint> strides = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
2294
dimension = tensor.
Rank
- dimension;
2296
scoped Span<nint> newLengths = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
+ 1, out TensorOperation.RentedBuffer<nint> lengthsRentedBuffer);
2302
Span<nint> newStrides = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
+ 1, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
2303
if (dimension == tensor.
Rank
)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
384
_indexes = new nint[tensor.
Rank
];