3 writes to _values
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
45_values = []; 61_values = []; 86_values = values;
21 references to _values
System.Numerics.Tensors (21)
System\Numerics\Tensors\netcore\Tensor.cs (6)
352Span<T> srcSpan = _values; 353Span<bool> filterSpan = filter._values; 379public static implicit operator TensorSpan<T>(Tensor<T> value) => new TensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(value._values), value._lengths, value._strides, value._flattenedLength); 384public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> value) => new ReadOnlyTensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(value._values), value._lengths, value._strides, value.FlattenedLength); 390public TensorSpan<T> AsTensorSpan() => new TensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(_values), _lengths, _strides, _flattenedLength); 417public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(_values), _lengths, _strides, _flattenedLength);
System\Numerics\Tensors\netcore\TensorExtensions.cs (13)
87intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref output._values[0], (int)output.FlattenedLength)); 236return new Tensor<T>(input._values, lengths, false); 262Tensor<T> output = new Tensor<T>(input._values, lengths, strides); 2789return new Tensor<T>(tensor._values, arrLengths, strides); 2945ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor.AsTensorSpan()._reference, (int)tensor._values.Length); 2947if (newSize > tensor._values.Length) 2948TensorSpanHelpers.Memmove(ospan, span, tensor._values.Length); 2963ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._values[0], tensor._values.Length); 2965if (destination._shape._memoryLength > tensor._values.Length) 2966TensorSpanHelpers.Memmove(ospan, span, tensor._values.Length); 3317return new Tensor<T>(tensor._values, lengths, strides); 3678return new Tensor<T>(tensor._values, lengths, strides);
System\Numerics\Tensors\netcore\TensorHelpers.cs (2)
95=> tensor1._values.Length == tensor2._values.Length;