10 references to Strides
System.Numerics.Tensors (10)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
390public ReadOnlySpan<nint> Strides => _shape.Strides; 446return new ReadOnlyTensorSpan<T>(ref Unsafe.As<TDerived, T>(ref items._reference), items._shape.Lengths, items._shape.Strides, items._shape._memoryLength); 718toReturn = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _reference, index), lengths, _shape.Strides, _shape._memoryLength - index);
System\Numerics\Tensors\netcore\TensorHelpers.cs (2)
106if (tensor._shape.Strides[^1] != 1) 112if (tensor._shape.Strides[i] != TensorPrimitives.Product(tensor.Lengths.Slice(i + 1, tensor.Lengths.Length - i - 1)))
System\Numerics\Tensors\netcore\TensorSpan.cs (5)
398public ReadOnlySpan<nint> Strides => _shape.Strides; 414left._shape.Strides.SequenceEqual(right._shape.Strides) && 658new ReadOnlyTensorSpan<T>(ref span._reference, span._shape.Lengths, span._shape.Strides, span._shape._memoryLength); 755toReturn = new TensorSpan<T>(ref Unsafe.Add(ref _reference, index), lengths, _shape.Strides, _shape._memoryLength - index);