vtmm
vtmm copied to clipboard
Vectorized transfer matrix method (TMM) for computing the optical reflection and transmission of multilayer planar stacks
Hey, just wondering how to best implement a dispersive layer without loosing the performance benefits of your vectorized version. Thanks for your help!
Only thing preventing this currently is figuring out how to implement the "batch" dims on `eye` and `diag` for numpy. Tensor flow currently works completely, but has additional options that...
Can have input `n` be of size `[Nd, Nw]` and broadcast over frequency when constructing the matrices
T needs to be normalized correctly when the exiting medium is not the same as the incident medium.
Can take approach similar to how we do the test with tmm