API
ClimaCartesianIndices.FastCartesianIndices
— TypeFastCartesianIndices
FastCartesianIndices
is a drop-in replacement for CartesianIndices
.
Unlike CartesianIndices
, FastCartesianIndices
avoids integer division by using Base.MultiplicativeInverses.SignedMultiplicativeInverse
.
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)