Skip to main content

Module c4x4

Module c4x4 

Source
Expand description

Fixed-size 4x4 complex kernels for the uniaxial transfer chain hot path.

Generic over Real so the same arithmetic can be evaluated in f32 for precision studies and ported one-to-one to GPU backends.

Functions§

fill_w
Fills the Nevot-Croce roughness matrix at an interface.
fused_interface_kernel
Fused (prev_di * d).hadamard(w) optionally followed by column scaling * diag(p).
hadamard
identity
mul
mul_assign
propagation_diag
Writes diag(exp(-i kz d)) as column scaling factors.
zero

Type Aliases§

Mat4
Stack-allocated 4x4 complex matrix in row-major [row][col] layout.