compute_dPgeom#
- Parametrization.compute_dPgeom(params: ndarray) ndarray#
Compute the perturbation array for calculating d_Eps, i.e., how much (dP) should each Lumerical sim geometric property (‘P’) be perturbed for finite-difference gradient calculations given the optimization params (‘p’) and their perturbations (‘dp’).
- Parameters:
- params
np.ndarray Parameter values (‘p’) at which to compute dPgeom.
- params
- Returns:
np.ndarray1D Array of perturbation values for each sim geometry property.