orbithunter.OrbitKS._truncate
- OrbitKS._truncate(size, axis=0)[source]
Decrease the size of the discretization via truncation
- Parameters:
- sizeint
The new size of the discretization, must be an even integer smaller than the current size of the discretization (handled by resize method).
- axisint
The dimension of the state that will be truncated.
- Returns:
- OrbitKS
OrbitKS instance with smaller discretization.
Notes
Need to account for the normalization factors by multiplying by old, dividing by new.