Learn R Programming

hdf5r (version 1.3.11)

array_counter: Cycle through n-dimensional array indices

Description

Cycle through n-dimensional array indices

Usage

array_counter(count, dims)

Value

An integer vector of the same length as dim, with 0-based indices

Arguments

count

The counter (0-based)

dims

The sizes of the dimension

Author

Holger Hoefling

Details

Cycles through all indices of an n-dimensional array. The first dimension moves fastest. The counter is 0-based and the output is 0-based as well.