ptypy.utils.math_utils.delxc#
- ptypy.utils.math_utils.delxc(a, axis=-1)#
Central first order derivative for finite difference calculation.
Note
Forward and backward derivatives are used for first and last elements along the derivative direction.
Pixel units are used (\(\Delta x = \Delta h = 1\)).
- Parameters:
a (nd-numpy-array) – Input array.
axis (int, Default=-1, optional) – Which direction used for the derivative.
- Returns:
out – Derived array.
- Return type:
nd-numpy-array