API

ClimaCartesianIndices.FastCartesianIndicesType
FastCartesianIndices

FastCartesianIndices is a drop-in replacement for CartesianIndices.

Unlike CartesianIndices, FastCartesianIndices avoids integer division by using Base.MultiplicativeInverses.SignedMultiplicativeInverse.

Warn

FastCartesianIndices internally uses Int32 and is therefore only valid when the product of the input indices are less than or equal to typemax(Int32) (2147483647)

source