pub fn uniaxial_reflectivity_batch(
q: &[f64],
layers: &[Vec<Layer>],
tensor: &[Vec<Matrix3<Complex<f64>>>],
energies_ev: &[f64],
parallel: bool,
) -> Result<UniaxialBatchOutput>Expand description
Computes polarized reflectance for many energies sharing one q-grid.
§Parameters
q: scattering wavevectors in1/Angstrom, lengthn_q.layers: per-energy slab rows with shape conceptually(n_E, N, 4).tensor: per-energy tensors with shape(n_E, N, 3, 3).energies_ev: photon energies in eV, lengthn_E.parallel: distribute flattened(energy, q)pairs across rayon.
§Errors
Same contract as uniaxial_reflectivity, with energy index included in
singularity messages.