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)
24if ((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)
1518if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1522if (lengthOffset == tensor.Rank) 1657Span<NRange> srcIndexes = TensorOperation.RentedBuffer.CreateUninitialized(tensor.Rank, out TensorOperation.RentedBuffer<NRange> srcIndexesRentedBuffer); 1658Span<NRange> dstIndexes = TensorOperation.RentedBuffer.CreateUninitialized(tensor.Rank, out TensorOperation.RentedBuffer<NRange> dstIndexesRentedBuffer); 1749if (dimension < 0 || dimension >= tensor.Rank) 1762scoped Span<NRange> sliceDims = TensorOperation.RentedBuffer.CreateUninitialized(tensor.Rank, out TensorOperation.RentedBuffer<NRange> lengthsRentedBuffer); 1935int rank = tensor.Rank; 2071ArgumentOutOfRangeException.ThrowIfNotEqual(maximumLengths.Length, tensor.Rank); 2088if (tensor.Rank == 1) 2110if (tensor.Rank != 1) 2368dimension = tensor.Rank - dimension; 2370scoped Span<nint> newLengths = TensorOperation.RentedBuffer.CreateUninitialized(tensor.Rank + 1, out TensorOperation.RentedBuffer<nint> lengthsRentedBuffer); 2376Span<nint> newStrides = TensorOperation.RentedBuffer.CreateUninitialized(tensor.Rank + 1, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer); 2377if (dimension == tensor.Rank)
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
66scoped Span<nint> xIndexes = RentedBuffer.Create(x.Rank, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer); 159scoped Span<nint> xIndexes = RentedBuffer.Create(x.Rank, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer); 179scoped Span<nint> xIndexes = RentedBuffer.Create(x.Rank, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer); 302scoped Span<nint> xIndexes = RentedBuffer.Create(x.Rank, x.Strides, out nint xLinearOffset, out RentedBuffer<nint> xRentedBuffer); 364if (x.Rank > y.Rank)