Skip to main content

solve_point_recursive_jvp

Function solve_point_recursive_jvp 

Source
pub fn solve_point_recursive_jvp<T: Real>(
    q: T,
    dq: T,
    k0: T,
    layers: &[LayerCoeffs<T>],
    dlayers: &[LayerCoeffs<T>],
) -> ([T; 2], [T; 2])
Expand description

Reflectance and its directional derivative at one q-point.

§Parameters

  • q, k0, layers: as in super::solve_point_recursive.
  • dq: tangent of q in 1/Angstrom per unit step along the direction.
  • dlayers: tangent of every layer record (same length as layers); chi_o, chi_e, thickness, and sigma carry the per-unit-step change of the corresponding field. k0 is held fixed.

§Returns

([R_pp, R_ss], [dR_pp, dR_ss]).