6 references to GetOffsetAndLengthForNInt
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
285
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNInt
, nint>(indexes));
414
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNInt
, nint>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
128
get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNInt
, nint>(indexes));
255
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNInt
, nint>(startIndexes, out nint linearOffset);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
186
get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.
GetOffsetAndLengthForNInt
, nint>(indexes));
311
TensorShape shape = _shape.Slice<TensorShape.
GetOffsetAndLengthForNInt
, nint>(startIndexes, out nint linearOffset);