module NumRu::Misc::MD_Iterators

A Mixin. To be included in a class with multi-dimension indexing support (such as NArray).

Index

Methods

each_subary_at_dims( *dims )

Iterator for each sub-array (not each element) specified by dimensions.

ARGUMENT

RETURN VALUE

POSSIBLE EXCEPTIONS

EXAMPLE

each_subary_at_dims_with_index( *dims )

Like each_subary_at_dims but the block takes two arguments: subset and the subset specifier (index).

EXAMPLE