pysdic.NoDistortion._apply#

NoDistortion._apply(x_i, *, dx=False, dp=False)#

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

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

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

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

Returns:

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

Return type:

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