assumeHypercube

Helps the compiler to use optimisations related to the shape form

@optmath
void
assumeHypercube
(
Iterator
size_t N
SliceKind kind
Labels...
)
(
ref scope Slice!(Iterator, N, kind, Labels) slice
)

Examples

auto b = iota(5, 5);

assumeHypercube(b);

assert(b == iota(5, 5));

Meta