compute_params_to_lumerical_jacobian#

ClosedCurve.compute_params_to_lumerical_jacobian(params: ndarray) ndarray#

Compute Jacobian from optimization parameters to Lumerical parameters.

For ClosedCurve, this uses finite differences since full autograd support for all Bezier segment types is complex.

Parameters:
paramsnp.ndarray

Current optimization parameter values.

Returns:
np.ndarray

Jacobian matrix of shape (n_polygon_points * 2, n_params).