7 references to GetLinearOffset
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
256get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 262get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
83get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 89get => ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start + _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));
System\Numerics\Tensors\netcore\TensorShape.cs (1)
1161Debug.Assert(computedOffset == GetLinearOffset<TGetOffsetAndLength, T>(state));
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
156get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 162get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes));