7 references to GetLinearOffset
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
285get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 291get => 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)
1293Debug.Assert(computedOffset == GetLinearOffset<TGetOffsetAndLength, T>(state));
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
186get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 192get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));