Skip to main content

refloxide_tmm/
lib.rs

1//! Transfer-matrix reflectivity kernels and CPU drivers.
2//!
3//! [`kernel`] holds the backend-agnostic per-point solvers (uniaxial-z
4//! recursion, R-matrix, full general 4x4, forward-mode tangents),
5//! [`uniaxial`] and [`general_stack`] validate inputs and drive them over
6//! q-points, energies, and stacks with optional rayon parallelism, and
7//! [`bookended`] builds graded book-ended film stacks and solves them.
8//!
9//! It does not own shared types ([`refloxide_core`]), optical-constant
10//! handling ([`refloxide_optics`]), the GPU backend, or any Python binding.
11
12pub mod bookended;
13pub mod general_stack;
14pub mod kernel;
15pub mod uniaxial;
16
17pub use bookended::{
18    adaptive_microslab_thicknesses, bookended_uniaxial_reflectivity, build_bookended_film_stack,
19    density_profile_bookended, orientation_profile_bookended, BookendedParams,
20};
21pub use general_stack::general_reflectivity;
22pub use uniaxial::{
23    uniaxial_reflectivity, uniaxial_reflectivity_batch, uniaxial_reflectivity_points, Layer,
24    UniaxialBatchOutput, UniaxialOutput,
25};