Skip to contents

Equivalent to tma's flat_index(). Throws if lengths of `indices` and `dims` differ.

Usage

flat_index(indices, dims)

Arguments

indices

0-based integer vector of per-dimension indices

dims

Integer vector of array dimensions

Value

Scalar integer linear index