Initialize a differentiable LDOS instance Args: sim: the Meep simulation object of the problem.
(self, sim: mp.Simulation, **kwargs)
| 548 | """A differentiable LDOS""" |
| 549 | |
| 550 | def __init__(self, sim: mp.Simulation, **kwargs): |
| 551 | """Initialize a differentiable LDOS instance |
| 552 | |
| 553 | Args: |
| 554 | sim: the Meep simulation object of the problem. |
| 555 | """ |
| 556 | super().__init__(sim) |
| 557 | self.srckwarg = kwargs |
| 558 | |
| 559 | def register_monitors(self, frequencies): |
| 560 | self._frequencies = np.asarray(frequencies) |