Groups slices into a slice of refTuples. The slices must have identical strides or be 1-dimensional.
if true assumes that all slices has the same strides.
list of slices
n-dimensional slice of elements tuple
import mir.ndslice.allocation : slice; import mir.ndslice.topology : flattened, iota; auto alpha = iota!int(4, 3); auto beta = slice!int(4, 3).universal; auto m = zip!true(alpha, beta); foreach (r; m) foreach (e; r) e.b = e.a; assert(alpha == beta); beta[] = 0; foreach (e; m.flattened) e.b = cast(int)e.a; assert(alpha == beta);
Groups slices into a slice of refTuples. The slices must have identical strides or be 1-dimensional.