xoa.core.grid.gradient# xoa.core.grid.gradient(a, x, axis=-1)[source]# Derivative of an array with respect to a coordinate, at the centers: n becomes n-1 Parameters: a (array_like) x (array_like) – Coordinate, 1D along the axis or of the same shape as a axis (int)