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)
    struct MultidimArray(T, size_t n)
    ref inout @safe pure nothrow
    opIndex
    (
    in size_t[n] indices...
    )
    if (
    n >= 1
    )
  2. auto opIndex(A args)
  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