orbithunter.OrbitKS._pad

OrbitKS._pad(size, axis=0, **kwargs)[source]

Increase the size of the discretization via zero-padding

Parameters
sizeint

The new size of the discretization, must be an even integer larger than the current size of the discretization (handled by resize method).

axisint

The dimension of the state that will be padded.

Returns
OrbitKS :

OrbitKS instance with larger discretization.

Notes

Need to account for the normalization factors by multiplying by old, dividing by new.