pub fn uniaxial_reflectivity_points(
q: &[f64],
stack_of: &[usize],
layers: &[Vec<Layer>],
tensor: &[Vec<Matrix3<Complex<f64>>>],
energies_ev: &[f64],
parallel: bool,
) -> Result<UniaxialOutput>Expand description
Polarized reflectance and transmission for independent (q, stack) points.
Generalizes uniaxial_reflectivity_batch to ragged q-grids: point i
is evaluated at q[i] against stack stack_of[i], whose layers, tensors,
and photon energy are layers[s], tensor[s], and energies_ev[s].
Typical use is one stack per photon energy with each energy’s measured
q-grid (and per-polarization theta offsets) concatenated into q.
§Parameters
q: scattering vector per point in1/Angstrom.stack_of: stack index per point, same length asq.layers,tensor,energies_ev: per-stack inputs as inuniaxial_reflectivity_batch.parallel: distribute points across rayon when true.
§Returns
UniaxialOutput with one entry per point, in input order.
§Errors
Same contract as uniaxial_reflectivity_batch, plus
[RefloxideError::InvalidShape] for a length mismatch or out-of-range
stack index; singularity errors report the stack as energy_index and
the point as q_index.