Skip to main content

uniaxial_reflectivity_batch

Function uniaxial_reflectivity_batch 

Source
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 in 1/Angstrom, length n_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, length n_E.
  • parallel: distribute flattened (energy, q) pairs across rayon.

§Errors

Same contract as uniaxial_reflectivity, with energy index included in singularity messages.