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:
- params
np.ndarray Current optimization parameter values.
- params
- Returns:
np.ndarrayJacobian matrix of shape (n_polygon_points * 2, n_params).