Utilities
MethodOfLines.unitindex
— Functionunitindex(N, j)
Get a CartesianIndex
of j
-th canonical vector of length N
.
MethodOfLines.params
— Functionparams(u, s::DiscreteSpace)
Fillter out the time variable and get the spatial variables of u
in s
.
MethodOfLines.Idx
— FunctionIdx(II::CartesianIndex, s::DiscreteSpace, u, indexmap)
Here indexmap
maps the arguments of u
in s
to the their ordering. Return a subindex of II
that corresponds to only the spatial arguments of u
.