ndStrided

n-dimensional strided

ndStrided
(
size_t d = 0
S
size_t dim
)
(
S s
,
ptrdiff_t[dim] strides...
)
if (
isSlice!S &&
)

Examples

import mir.ndslice;

auto s = iota(3, 4);
assert(s.ndStrided(2, 3) == s.strided(0, 2).strided(1, 3));

Meta