6 references to GetOffsetAndLengthForNIndex
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
290
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
420
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
134
get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
268
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
191
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(indexes));
317
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNIndex
, NIndex>(startIndexes, out nint linearOffset);