Implemented interface member:
property
Rank
System.Numerics.Tensors.IReadOnlyTensor<TSelf, T>.Rank
33 references to Rank
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (8)
229if (ranges.Length != Rank) 325if (ranges.Length != Rank) 587_curIndices = new nint[_tensor.Rank]; 588_curIndices[_tensor.Rank - 1] = -1; 594TensorSpanHelpers.AdjustIndexes(_tensor.Rank - 1, 1, ref _curIndices, _tensor.Lengths); 606_curIndices[_tensor.Rank - 1] = -1; 646int n = Rank; 675maximumLengths = (from number in Enumerable.Range(0, Rank) select (nint)5).ToArray();
System\Numerics\Tensors\netcore\TensorExtensions.cs (25)
2646if (tensor.Rank == 1) 2653nint[] lengths = new nint[tensor.Rank]; 2661int[] tempPermutation = new int[tensor.Rank]; 2662for (int i = 0; i < tensor.Rank; i++) 2664lengths[i] = tensor._lengths[tensor.Rank - 1 - i]; 2665tempPermutation[i] = tensor.Rank - 1 - i; 2687if (outTensor.Rank > 6) 2689indicesArray = ArrayPool<nint>.Shared.Rent(outTensor.Rank); 2690indexes = indicesArray.AsSpan(0, outTensor.Rank); 2693permutedIndicesArray = ArrayPool<nint>.Shared.Rent(outTensor.Rank); 2694permutedIndices = permutedIndicesArray.AsSpan(0, outTensor.Rank); 2700indexes = stackalloc nint[outTensor.Rank]; 2702permutedIndices = stackalloc nint[outTensor.Rank]; 2709TensorSpanHelpers.AdjustIndexes(outTensor.Rank - 1, 1, indexes, tensor._lengths); 2772if (lengthOffset < tensor.Rank && arrLengths[i] == tensor.Lengths[lengthOffset]) 2776if (lengthOffset == tensor.Rank) 3281if (dimension >= tensor.Rank) 3460dimension = tensors[0].Rank - dimension; 3605int[] dimension = Enumerable.Range(0, tensor.Rank).ToArray(); 3606int temp = dimension[tensor.Rank - 1]; 3607dimension[tensor.Rank - 1] = dimension[tensor.Rank - 2]; 3608dimension[tensor.Rank - 2] = temp; 3667dimension = tensor.Rank - dimension; 3673if (dimension == tensor.Rank)