Copy a single element state into a larger array and pad it with zeroes.
The additional modes might be necessary for proper dealing with nonlinear operations. Please note, that the oversampled representation is always a Q-Space polynomial.
State in a single element, to be oversampled.
Description of the projection method.
The number of dimensions to determine the correct oversampling routine.
Oversampled array for modal coefficients from state.
These are always Q-Polynomial representations, as projections only work with those.
The number of scalar variables to convert. If nScalars is not passed to this subroutine, all variables of argument state will be considered by this routine.
Only use modes up to the point, where we are sure that the resulting polynomial will be positive everywhere. This is an array of logicals for each variable, if not given, the default is false (no positivity ensured).