pub fn solve_flat_rmatrix<T: Real>(
q: &[T],
k0: &[T],
layers: &[LayerCoeffs<T>],
n_layers: usize,
parallel: bool,
) -> Result<Vec<[[T; 2]; 2]>>Expand description
Batched solve_point_rmatrix over equal-depth stacks and a shared q-grid.
Same buffer layout as solve_flat; see it for the parameter contract.
§Returns
Row-major (n_stacks, n_q) reflectance blocks in the PointResult
packing.
§Errors
Shape errors as in solve_flat; [RefloxideError::SingularDynamicMatrix]
with energy_index set to the stack index and q_index to the q index.