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:
paramsnp.ndarray

Parameter values (‘p’) at which to compute dPgeom.

Returns:
np.ndarray

1D Array of perturbation values for each sim geometry property.