File: array_counter.Rd

package info (click to toggle)
r-cran-hdf5r 1.3.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,344 kB
  • sloc: ansic: 85,341; sh: 51; python: 32; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Helper_functions.R
\name{array_counter}
\alias{array_counter}
\title{Cycle through n-dimensional array indices}
\usage{
array_counter(count, dims)
}
\arguments{
\item{count}{The counter (0-based)}

\item{dims}{The sizes of the dimension}
}
\value{
An integer vector of the same length as \code{dim}, with 0-based indices
}
\description{
Cycle through n-dimensional array indices
}
\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.
}
\author{
Holger Hoefling
}
\keyword{internal}