Skip to main content

Module uniaxial

Module uniaxial 

Source
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.
PointsJvpOutput
Reflectance and Jacobian-vector products for (q, stack) points.
PointsTangents
Direction-major tangent inputs for uniaxial_reflectivity_points_jvp.
UniaxialBatchOutput
Batched polarized reflectance and transmission over energies and q-points.
UniaxialOutput
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 / lambda in 1/Angstrom for a photon energy in eV.