MultidimArray.opIndexAssign

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)
  3. auto opIndexAssign(U value, A args)
    struct MultidimArray(T, size_t n)
    static if(isAssignable!T)
    opIndexAssign
    (
    U
    A...
    )
    (,)
    if (
    args.length == n &&
    allTuple!(isROrSize, A)
    )
    if (
    n >= 1
    )

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