everted

Reverses the order of dimensions.

@optmath
everted
(
Iterator
size_t N
SliceKind kind
)
(
Slice!(Iterator, N, kind) _slice
)

Parameters

_slice Slice!(Iterator, N, kind)

input slice

Return Value

Type: auto

n-dimensional slice

Examples

import mir.ndslice.slice;
import mir.ndslice.topology: iota;
assert(iota(3, 4, 5)
    .everted
    .shape == cast(size_t[3])[5, 4, 3]);

See Also

Meta