10 references to Strides
System.Numerics.Tensors (10)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
407public ReadOnlySpan<nint> Strides => _shape.Strides; 463return new ReadOnlyTensorSpan<T>(ref Unsafe.As<TDerived, T>(ref items._reference), items._shape.Lengths, items._shape.Strides, items._shape._memoryLength); 735toReturn = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _reference, index), lengths, _shape.Strides, _shape._memoryLength - index);
System\Numerics\Tensors\netcore\TensorHelpers.cs (2)
104if (tensor._shape.Strides[^1] != 1) 110if (tensor._shape.Strides[i] != TensorPrimitives.Product(tensor.Lengths.Slice(i + 1, tensor.Lengths.Length - i - 1)))
System\Numerics\Tensors\netcore\TensorSpan.cs (5)
413public ReadOnlySpan<nint> Strides => _shape.Strides; 429left._shape.Strides.SequenceEqual(right._shape.Strides) && 673new ReadOnlyTensorSpan<T>(ref span._reference, span._shape.Lengths, span._shape.Strides, span._shape._memoryLength); 770toReturn = new TensorSpan<T>(ref Unsafe.Add(ref _reference, index), lengths, _shape.Strides, _shape._memoryLength - index);