Implemented interface member:
property
Rank
System.Numerics.Tensors.IReadOnlyTensor.Rank
16 references to Rank
System.Numerics.Tensors (16)
System\Numerics\Tensors\netcore\Tensor.cs (11)
292
if (dimension != -1 && destination.
Rank
!= rank)
316
int targetRank = target.
Rank
;
428
nint linearOffset = destination.IsDense ? offset++ : destination._shape.GetLinearOffsetForDimension(offset++, destination.
Rank
);
445
int rank = destination.
Rank
;
1983
nint linearOffset = destination._shape.GetLinearOffsetForDimension(i, destination.
Rank
);
2055
int destinationDimension = dimension == -1 ? -1 : dimension + destination.
Rank
- tensor.Rank;
2073
for (int i = dimension + 1; i < tensor.
Rank
; i++)
2202
int destinationRank = destination.
Rank
;
2547
int rank = tensor.
Rank
;
2792
if (destination.
Rank
!= rank + 1)
2803
Span<NRange> ranges = TensorOperation.RentedBuffer.CreateUninitialized(target.
Rank
,
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
21
int rank = tensor.
Rank
;
25
rank = tensor.
Rank
;
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
634
scoped Span<nint> indexes = RentedBuffer.Create(x.
Rank
, x.Strides, out nint linearOffset, out RentedBuffer<nint> rentedBuffer);
885
scoped Span<nint> indexes = RentedBuffer.Create(destination.
Rank
, destination.Strides, out nint linearOffset, out RentedBuffer<nint> rentedBuffer);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (1)
503
: _span._shape.GetLinearOffsetForDimension(_itemsEnumerated, _span.
Rank
);