32 Commits

Author SHA1 Message Date
44465f1bc9 modernize type annotations 2023-05-22 10:53:13 -07:00
3bf56c16c1 More in-place ops
Z.copy() is needed since op is in-place now
2023-05-22 09:55:47 -07:00
5c7deedb70 do more in-place 2023-05-22 09:53:56 -07:00
fd1a83b5b9 cleaner way to ravel 2023-05-22 09:53:30 -07:00
7cf90fe0de use keepdims instead of readding dims 2023-05-22 09:52:52 -07:00
09aa9761c6 Use same variable names as in code 2022-11-27 12:36:53 -08:00
jan
697770ce97 improve top level bloch comment 2022-11-24 23:16:25 -08:00
jan
b7bd825bce make saving previous GtKG direction more obvious 2022-11-22 22:23:00 -08:00
jan
ff395277b0 add another comment about minmization 2022-11-22 22:21:51 -08:00
jan
dfbb845bee add some comments 2022-11-22 22:21:31 -08:00
a64afcbe4d Add more info to log message 2022-11-22 14:44:54 -08:00
03c15c8486 store ZtAZ instead of AZU
U is small (~number of modes)^2
2022-11-22 14:44:43 -08:00
bec0137c99 update type hints and formatting 2022-11-20 19:56:45 -08:00
68a9818388 use moveaxis instead of deprecated rollaxis 2022-11-20 19:55:51 -08:00
8f8c130c2f use previous result as next guess 2022-11-14 12:39:41 -08:00
4a9198ade7 allow setting initial guess 2022-11-14 12:39:29 -08:00
c7c71a3a82 add per-iteration callback 2022-11-14 12:20:50 -08:00
a82d8dfc7e pass k_bounds and k_guess instad of just k_min and k_max 2022-11-14 12:20:33 -08:00
86feb5461c don't use patient planner by default 2022-11-14 12:19:55 -08:00
640b4d1ef7 Make find-k also return eigenvalues 2022-10-04 17:27:58 -07:00
52df24ad98 Major typing updates
Split field types to differentiate between complex and purely-real

Fix lots of numpy-related stuff
2022-10-04 17:17:44 -07:00
ad1ec6acfb Back off on FFTW args
multithreading in particular seems pretty detrimental
2022-10-04 14:35:30 -07:00
ec9a6edc85 be explicit about stack axis 2022-10-04 14:33:36 -07:00
faecc79179 typing and formatting updates 2022-10-04 14:32:40 -07:00
d42a625e5f typing updates 2022-10-04 12:43:26 -07:00
bc428f5e8e add more type hints 2020-10-16 21:46:04 -07:00
d13a3796a9 style and type fixes (per mypy and flake8) 2020-10-16 19:16:13 -07:00
a312a3085c hmn_2_exyz should return an ndarray 2020-06-11 19:26:51 -07:00
f69b8c9f11 Change comments to new format 2020-01-07 21:31:16 -08:00
a956323b94 move stuff under fdmath 2019-11-27 22:59:52 -08:00
d6e7e3dee1 Big documentation and structure updates
- Split math into fdmath package
- Rename waveguide into _2d _3d and _cyl variants
- pdoc-based documentation
2019-11-24 23:47:31 -08:00
f61bcf3dfa rename to meanas and split fdtd/fdfd 2019-08-04 13:48:41 -07:00