Skip to main content

refloxide_core/
lib.rs

1//! Shared foundation for the refloxide transfer-matrix crates.
2//!
3//! Holds the scalar abstraction ([`Real`]), the slab and kernel-record
4//! types ([`Layer`], [`LayerCoeffs`]), result containers, input validation,
5//! fixed-size 4x4 complex helpers ([`c4x4`]), the exact 4x4 inverse
6//! ([`math`]), and the typed [`RefloxideError`].
7//!
8//! It contains no solver loops, no threading, and no Python or GPU
9//! dependencies. Solvers live in `refloxide-tmm`; optical-constant handling
10//! lives in `refloxide-optics`.
11
12pub mod c4x4;
13pub mod error;
14pub mod layer;
15pub mod math;
16pub mod output;
17pub mod real;
18pub mod validate;
19
20pub use error::{RefloxideError, Result};
21pub use layer::{layer_coeffs, wavenumber, Layer, LayerCoeffs, HC_EV_ANGSTROM};
22pub use output::{PointsJvpOutput, PointsTangents, UniaxialBatchOutput, UniaxialOutput};
23pub use real::Real;
24pub use validate::{jvp_coeffs, validate_batch, validate_points};