pub fn solve_point_general<T: Real>(
q: T,
k0: T,
layers: &[GeneralLayer<T>],
) -> Result<[[T; 2]; 2]>Expand description
Polarized reflectance at one q-point for a general anisotropic stack.
Solves every layer’s Berreman eigenmodes (see the module documentation)
and runs the 4x4 reflection-matrix recursion, including Nevot-Croce
roughness applied per labeled mode. Uniaxial-z stacks reproduce
super::solve_point_rmatrix; tilted, rotated, and biaxial tensors
produce nonzero cross-polarized reflectance.
§Parameters
q: scattering vector in1/Angstrom, with|q / (2 k0)| <= 1after clamping.k0: vacuum wavenumber2 pi / lambdain1/Angstrom, positive.layers: fronting (isotropic), interior slabs, backing; length at least two.
§Returns
Reflectance [[R_pp, R_sp], [R_ps, R_ss]] in the super::PointResult
packing, where R_sp is s reflected from p incident.
§Errors
[refloxide_core::RefloxideError::SingularDynamicMatrix] when a layer’s mode
matrix or the recursion denominator is singular.