8 references to GetOffsetAndLengthForNIndex
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (3)
265
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
421
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
496
nint longestContiguousLength = _shape.GetLongestContiguousLength<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
92
get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
238
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (3)
159
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
311
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
360
nint longestContiguousLength = _shape.GetLongestContiguousLength<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);