MCPcopy Create free account
hub / github.com/NanoComp/meep / dtft

Method dtft

python/adjoint/filter_source.py:150–158  ·  view source on GitHub ↗
(self, y, f)

Source from the content-addressed store, hash-verified

148 return bw.real
149
150 def dtft(self, y, f):
151 return (
152 np.matmul(
153 np.exp(1j * 2 * np.pi * f[:, np.newaxis] * np.arange(y.size) * self.dt),
154 y,
155 )
156 * self.dt
157 / np.sqrt(2 * np.pi)
158 )
159
160 def __call__(self, t):
161 if t > self.T:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected