unpad

only both is supported

unpad
(
size_t d = 0
S
size_t N
)
(
S s
,
size_t[N] lengths...
)
if (
isSlice!S &&
)

Examples

import mir.ndslice;

auto s = iota(3, 4);
assert(s.pad(0, [2, 1]).slicedNdField.unpad(2, 1) == s);

Meta