Method orderedStride
val orderedStride: int64 list -> int list -> int64 list
Computes the strides for the given shape using the specified ordering.
The axis that is first in the ordering gets stride 1.
The resulting strides will be independent of the shape of the axis
that appears last in the ordering.
A C-order stride corresponds to the ordering: [n; n-1; ...; 2; 1; 0].
A Fortran-order stride corresponds to the ordering: [0; 1; 2; ...; n-1; n].
Declaration
val orderedStride: shape:int64 list -> order:int list -> int64 list
Parameters
Type |
Name |
Description |
int64 list |
shape |
|
int list |
order |
|
Returns
Type |
Description |
int64 list |
|