uxarray.grid.utils._inv_jacobian

Contents

uxarray.grid.utils._inv_jacobian#

uxarray.grid.utils._inv_jacobian(x0, x1, y0, y1, z0, z1, x_i_old, y_i_old)#

Calculate the inverse Jacobian matrix for a given set of parameters.

Parameters:
  • x0 (float) – Description of x0.

  • x1 (float) – Description of x1.

  • y0 (float) – Description of y0.

  • y1 (float) – Description of y1.

  • z0 (float) – Description of z0.

  • z1 (float) – Description of z1.

  • x_i_old (float) – Description of x_i_old.

  • y_i_old (float) – Description of y_i_old.

Returns:

The inverse Jacobian matrix if it is non-singular, or None if a singular matrix is encountered.

Return type:

numpy.ndarray or None

Notes

This function calculates the inverse Jacobian matrix based on the provided parameters. If the Jacobian matrix is singular, a warning is printed, and None is returned.