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