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