3 writes to _strides
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
47_strides = []; 63_strides = []; 70_strides = strides.IsEmpty ? TensorSpanHelpers.CalculateStrides(_lengths, _flattenedLength) : strides.ToArray();
8 references to _strides
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\Tensor.cs (8)
71TensorSpanHelpers.ValidateStrides(_strides, _lengths); 72nint maxElements = TensorSpanHelpers.ComputeMaxLinearIndex(_strides, _lengths); 187public ReadOnlySpan<nint> Strides => _strides; 193ReadOnlySpan<nint> IReadOnlyTensor<Tensor<T>, T>.Strides => _strides; 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);