7 references to GetLinearOffset
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
284get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 290get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
128get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 134get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));
System\Numerics\Tensors\netcore\TensorShape.cs (1)
1255Debug.Assert(computedOffset == GetLinearOffset<TGetOffsetAndLength, T>(state));
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
185get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 191get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));