The OpenD Programming Language

chunks.chunks

  1. Chunks!([Dimensions], Iterator, N, kind == Contiguous && [Dimensions] != [0] ? Canonical : kind) chunks(Slice!(Iterator, N, kind) slice, size_t[Dimensions.length] chunkLengths)
    template chunks(Dimensions...)
    static if(allSatisfy!(isSize_t, Dimensions))
    Chunks!([Dimensions], Iterator, N,
    kind == Contiguous &&
    [Dimensions] != [0]
    ? Canonical : kind)
    chunks
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    ,
    size_t[Dimensions.length] chunkLengths...
    )
    if (
    Dimensions.length
    )
  2. Chunks!([0], Iterator, N, kind) chunks(Slice!(Iterator, N, kind) slice, size_t chunkLength)

Parameters

slice Slice!(Iterator, N, kind)

Slice to chunk.

chunkLengths size_t[Dimensions.length]

Chunk shape. It must not have a zero length.

Return Value

Type: Chunks!([Dimensions], Iterator, N,
kind == Contiguous &&
[Dimensions] != [0]
? Canonical : kind)

Meta