pysdic.SubsetParametrization._decode#

SubsetParametrization._decode(p_o, *, dp=False)[source]#

Extract the selected parameters from the output parameters \(\vec{p_o}\).

\[\vec{p_i} = \vec{p_o}[\mathcal{S}]\]
\[\mathbf{J}_p = \mathbf{E}^T = \mathbf{I}_{n_o}[\mathcal{S}, :]\]
Parameters:
  • p_o (numpy.ndarray) – A 1D array of shape \((n_o,)\) containing the output parameters to decode.

  • dp (bool, optional (default: False)) – Whether to compute the Jacobian with respect to the output parameters.

Returns:

A tuple containing:

  • The decoded input parameters as a 1D array of shape \((n_i,)\).

  • The Jacobian matrix with respect to the output parameters as a 2D array of shape \((n_i, n_o)\), or None if not computed.

Return type:

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