50 writes to _reference
System.Numerics.Tensors (50)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
55return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (23)
44_reference = ref (array is not null) 79_reference = ref (array is not null) 103_reference = ref (array is not null) 115_reference = ref reference; 145_reference = ref reference; 157_reference = ref (array is not null) 184_reference = ref (array is not null) 199_reference = ref Unsafe.AsRef<T>(data); 238_reference = ref Unsafe.AsRef<T>(data); 244_reference = ref Unsafe.AsRef(in data); 249_reference = ref Unsafe.AsRef(in reference); 256get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNInt, nint>(indexes)); 262get => ref Unsafe.Add(ref _reference, _shape.GetLinearOffset<TensorShape.GetOffsetAndLengthForNIndex, NIndex>(indexes)); 303=> Unsafe.AreSame(ref left._reference, ref right._reference) 327ref Unsafe.As<TDerived, T>(ref items._reference), 381if (_shape.FlattenedLength != 0) ret = ref _reference; 410ref Unsafe.Add(ref _reference, linearOffset), 420ref Unsafe.Add(ref _reference, linearOffset), 430ref Unsafe.Add(ref _reference, linearOffset), 484span = MemoryMarshal.CreateReadOnlySpan(in Unsafe.Add(ref _reference, linearOffset), length); 500span = MemoryMarshal.CreateReadOnlySpan(in Unsafe.Add(ref _reference, linearOffset), length); 560public readonly ref readonly T Current => ref Unsafe.Add(ref _span._reference, _linearOffset);
System\Numerics\Tensors\netcore\Tensor.cs (11)
1535ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1592ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.LinearLength); 1977ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2126ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2132tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2169sb.Append(Unsafe.Add(ref tensor._reference, i)); 2389ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 3531ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3543ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3554ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3567ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength);
System\Numerics\Tensors\netcore\TensorOperation.cs (14)
44in Unsafe.Add(ref x._reference, xLinearOffset), 45in Unsafe.Add(ref y._reference, yLinearOffset), 73in Unsafe.Add(ref x._reference, xLinearOffset), 118in Unsafe.Add(ref x._reference, xLinearOffset), 146in Unsafe.Add(ref x._reference, xLinearOffset), 168in Unsafe.Add(ref x._reference, xLinearOffset), 186in Unsafe.Add(ref x._reference, xLinearOffset), 208in Unsafe.Add(ref x._reference, xLinearOffset), 209in Unsafe.Add(ref y._reference, yLinearOffset), 237in Unsafe.Add(ref x._reference, xLinearOffset), 238in Unsafe.Add(ref y._reference, yLinearOffset), 267in Unsafe.Add(ref x._reference, xLinearOffset), 290in Unsafe.Add(ref y._reference, xLinearOffset), 309in Unsafe.Add(ref x._reference, xLinearOffset),
System\Runtime\InteropServices\TensorMarshal.cs (1)
57return ref tensorSpan._reference;
9 references to _reference
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\Tensor.cs (9)
2164sb.Append(tensor._reference); 3818T result = x._reference; 3881T result = x._reference; 3944T result = x._reference; 4007T result = x._reference; 4070T result = x._reference; 4133T result = x._reference; 4196T result = x._reference; 4259T result = x._reference;