pysdic.NoDistortion._invert#

NoDistortion._invert(x_o, *, dx=False, dp=False)#

Apply the identity transformation from \(\mathbb{R}^{n_o}\) to \(\mathbb{R}^{n_i}\).

\[\vec{x_i} = \mathbf{I}_{n_i \times n_o} \vec{x_o}\]
Parameters:
  • x_o (numpy.ndarray) – The output points with shape \((n_\text{points}, n_o)\).

  • dx (bool, optional (default: False)) – If True, compute the Jacobian with respect to the output points.

  • dp (bool, optional (default: False)) – If True, compute the (empty) Jacobian with respect to the parameters.

Returns:

A tuple containing: - The input points with shape \((n_\text{points}, n_i)\). - The Jacobian with respect to output points with shape \((n_\text{points}, n_i, n_o)\) if computed, otherwise None. - The Jacobian with respect to parameters with shape \((n_\text{points}, n_i, 0)\) if computed, otherwise None.

Return type:

Tuple[numpy.ndarray, Optional[numpy.ndarray], Optional[numpy.ndarray]]