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