Implemented interface member:
property
Rank
System.Numerics.Tensors.IReadOnlyTensor.Rank
24 references to Rank
System.Numerics.Tensors (24)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
24
if ((uint)dimension >= tensor.
Rank
)
33
_sliceShape = TensorShape.Create((dimension != tensor.
Rank
) ? tensor.Lengths[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
443
/// <exception cref="ArgumentOutOfRangeException"><paramref name="maximumLengths" /> is not empty and does not contain <see cref="
Rank
" /> elements.</exception>
551
_indexes = new nint[span.
Rank
];
System\Numerics\Tensors\netcore\Tensor.cs (14)
1518
if (lengthOffset < tensor.
Rank
&& newLengths[i] == tensor.Lengths[lengthOffset])
1522
if (lengthOffset == tensor.
Rank
)
1657
Span<NRange> srcIndexes = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<NRange> srcIndexesRentedBuffer);
1658
Span<NRange> dstIndexes = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<NRange> dstIndexesRentedBuffer);
1749
if (dimension < 0 || dimension >= tensor.
Rank
)
1762
scoped Span<NRange> sliceDims = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
, out TensorOperation.RentedBuffer<NRange> lengthsRentedBuffer);
1935
int rank = tensor.
Rank
;
2071
ArgumentOutOfRangeException.ThrowIfNotEqual(maximumLengths.Length, tensor.
Rank
);
2088
if (tensor.
Rank
== 1)
2110
if (tensor.
Rank
!= 1)
2368
dimension = tensor.
Rank
- dimension;
2370
scoped Span<nint> newLengths = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
+ 1, out TensorOperation.RentedBuffer<nint> lengthsRentedBuffer);
2376
Span<nint> newStrides = TensorOperation.RentedBuffer.CreateUninitialized(tensor.
Rank
+ 1, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
2377
if (dimension == tensor.
Rank
)
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
66
scoped Span<nint> xIndexes = RentedBuffer.Create(x.
Rank
, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer);
159
scoped Span<nint> xIndexes = RentedBuffer.Create(x.
Rank
, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer);
179
scoped Span<nint> xIndexes = RentedBuffer.Create(x.
Rank
, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer);
302
scoped Span<nint> xIndexes = RentedBuffer.Create(x.
Rank
, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer);
364
if (x.
Rank
> y.
Rank
)