central_difference
- cosmax.tools.central_difference(field: Array, axis: int, delta: float) Array
Compute the central difference of a field along a given axis. Periodic boundary conditions are used.
- Parameters:
field – field to differentiate
axis – axis along which to differentiate
delta – grid spacing
- Returns:
The central difference of the field