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