Expand description
Uniaxial 4x4 transfer matrix kernel.
Port of refloxide.pxr.tjf4x4.uniaxial_reflectivity. The implementation
is streaming, holding only the previous-layer (kz, Di) snapshot across
iterations of the transfer chain, and parallel across q-points via
[rayon]. This module validates inputs and packs tensors into
LayerCoeffs; the per-q transfer chain itself lives in
crate::kernel.
Structs§
- Layer
- One slab in a stratified medium.
- Points
JvpOutput - Reflectance and Jacobian-vector products for
(q, stack)points. - Points
Tangents - Direction-major tangent inputs for
uniaxial_reflectivity_points_jvp. - Uniaxial
Batch Output - Batched polarized reflectance and transmission over energies and q-points.
- Uniaxial
Output - Polarized reflectance and amplitude transmission for a single energy.
Functions§
- jvp_
coeffs - Validated value and tangent layer records for the JVP entry points.
- layer_
coeffs - Packs per-slab rows and dispersion tensors into kernel
LayerCoeffs. - uniaxial_
reflectance - Polarized reflectance only, for callers that discard transmission.
- uniaxial_
reflectivity - Computes polarized reflectance and transmission for a uniaxial multilayer.
- uniaxial_
reflectivity_ batch - Computes polarized reflectance for many energies sharing one q-grid.
- uniaxial_
reflectivity_ points - Polarized reflectance and transmission for independent
(q, stack)points. - uniaxial_
reflectivity_ points_ jvp - Reflectance and directional derivatives for independent
(q, stack)points. - validate_
batch - Shape and energy checks shared by the batched CPU and GPU entry points.
- validate_
points - Checks shared by the CPU and GPU point entry points.
- wavenumber
- Vacuum wavenumber
2 pi / lambdain1/Angstromfor a photon energy in eV.