popFrontTuple

Evaluates popFront!dimmensionIndex for multiple Chunks structures at once. All chunks structures must have for the appropriate dimension the same chunk lengths and the same underlying slice lengths.

void
popFrontTuple
(
size_t dimmensionIndex = 0
Master
Followers...
)
(
ref Master master
,
ref Followers followers
)
if (
isChunks!Master &&
allSatisfy!(isChunks, Followers)
)

Parameters

dimmensionIndex

dimensionIndex

master Master

the fist chunks structure

followers Followers

following chunks structures

Examples

import mir.ndslice.chunks: chunks;
import mir.ndslice.topology: iota;

auto a = iota(10, 20).chunks!(0, 1)(3, 7);
auto b = iota(20, 10).chunks!(1, 0)(3, 7);

auto as = a;
auto bs = b;

as.popFront;
bs.popFront;

popFrontTuple(a, b);

assert(as.slice == a.slice);
assert(bs.slice == b.slice);

assert(as.chunkLengths == a.chunkLengths);
assert(bs.chunkLengths == b.chunkLengths);

Meta