MultidimArray.opIndex

Inexing/slicing.

A parameter can be:

typemeaningeffect on a resulting dimensions
na position-1
m .. na range0
  1. ref opIndex(size_t[n] indices)
  2. auto opIndex(A args)
    struct MultidimArray(T, size_t n)
    inout @trusted pure nothrow
    opIndex
    (
    A...
    )
    ()
    if (
    args.length == n &&
    allTuple!(isROrSize, A)
    &&
    RCount!A
    )
    if (
    n >= 1
    )
  3. auto opIndexAssign(U value, A args)

Bugs

A bit ugly syntax is used because dmd hasn't support for a better one yet (see $(DBUGZILLA 6798)).

Examples

See MultidimArray examples.

Meta