pysdic.ReparametrizedTransformation._apply#
- ReparametrizedTransformation._apply(x_i, *, dx=False, dp=False, **kwargs)[source]#
Apply the transformation \(T\) to the input points \(\vec{x_i}\) with the parameters \(\vec{p} = P(\vec{q})\).
\[\vec{x_o} = T(\vec{x_i}; P(\vec{q}))\]The Jacobian with respect to the parameters is computed using the chain rule:
\[\mathbf{J}_q = \frac{\partial T}{\partial \vec{p}} \cdot \frac{\partial P}{\partial \vec{q}}\]- Parameters:
x_i (numpy.ndarray) – The input points to transform, 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 Jacobian with respect to the parameters \(\vec{q}\).**kwargs – Additional arguments passed to the
applymethod of the transformation.
- Returns:
numpy.ndarray – The transformed output points, with shape \((n_\text{points}, n_o)\).
Optional[numpy.ndarray] – The Jacobian matrix with respect to the input points if
dx=True, with shape \((n_\text{points}, n_o, n_i)\), or None ifdx=False.Optional[numpy.ndarray] – The Jacobian matrix with respect to the parameters \(\vec{q}\) if
dp=True, with shape \((n_\text{points}, n_o, n_q)\), or None ifdp=False.
- Return type: