array_counter: Cycle through n-dimensional array indices

Description Usage Arguments Details Value Author(s)

View source: R/Helper_functions.R

Description

Cycle through n-dimensional array indices

Usage

1
array_counter(count, dims)

Arguments

count

The counter (0-based)

dims

The sizes of the dimension

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.

Value

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

Author(s)

Holger Hoefling


hdf5r documentation built on Nov. 16, 2021, 1:06 a.m.