compute_parametrization_jacobian#

ClosedCurve.compute_parametrization_jacobian(params: ndarray) ndarray#

Compute the Jacobian of the parametrization function.

Only applicable when a user-defined parametrization function is set.

Parameters:
paramsnp.ndarray

Optimization parameters (shape: (n_params,)).

Returns:
np.ndarray

Jacobian matrix of shape (N*2, n_params) where N is the number of vertices. The Jacobian is flattened with x and y coordinates interleaved: [dx0/dp0, dx0/dp1, …, dy0/dp0, dy0/dp1, …, dx1/dp0, …].

Raises:

ValueError: If no user parametrization function is set