Module layers

Module layers 

Source
Expand description

S-matrices of planar multilayer stacks: one S-matrix of 2-by-2 blocks per transverse wavevector, built from interface() and add, with analytic pullbacks.

Upstream: treams.SMatrices.stack of interfaces and propagations.

Modulesยง

saved ๐Ÿ”’
Fixed invocation-state layout of independent planar channels.

Structsยง

Channel ๐Ÿ”’
The stack of one transverse wavevector: the lowest interface, then one step per interior layer.
LayerStackGradient
Multilayer parameter cotangents under the real Hermitian pairing.
LayerStackResidual
What layer_stack saves for its pullback: the solves of every transverse wavevector, each on its own, without a dense matrix over all of them.
Step ๐Ÿ”’
One interior layer: propagation across it, then the interface above it.

Functionsยง

layer_stack
Stack layers independently for each transverse wavevector; the output is one S-matrix of four 2-by-2 blocks per wavevector.
propagate ๐Ÿ”’
Place the propagation P = diag(phase) across a layer above the stack below.
propagate_pullback ๐Ÿ”’
Pull the cotangent g of propagate back to the stack below and the phases.