refloxide_optics/lib.rs
1//! Optical constants and laboratory-frame tensors for uniaxial stacks.
2//!
3//! [`optics`] interpolates tabulated optical constants and assembles
4//! diagonal uniaxial tensors; [`sld`] wraps single-point density scaling,
5//! tensor construction, and slab-row packing. Tensor entries carry
6//! `delta + i beta` per principal axis, the convention the transfer-matrix
7//! kernels expect.
8//!
9//! It does not solve reflectivity, validate stacks, or depend on Python or
10//! the GPU.
11
12pub mod optics;
13#[cfg(feature = "lineshapes")]
14pub mod peaks;
15pub mod sld;
16
17#[cfg(feature = "lineshapes")]
18pub use peaks::{peak_sum_molecular, LineKind, PeakSpec};
19pub use sld::{
20 isotropic_lab_tensor, molecular_index, molecular_index_at_ooc, tensor_to_slab_row,
21 uniaxial_lab_tensor,
22};