pub fn solve_flat_recursive<T: Real>(
q: &[T],
k0: &[T],
layers: &[LayerCoeffs<T>],
n_layers: usize,
parallel: bool,
) -> Result<Vec<[T; 2]>>Expand description
Batched solve_point_recursive over equal-depth stacks and a shared q-grid.
CPU counterpart of the GPU dispatch with identical buffer layout; see
solve_flat for the parameter contract.
§Returns
Row-major (n_stacks, n_q) pairs [R_pp, R_ss].
§Errors
[RefloxideError::InvalidShape] or [RefloxideError::InsufficientLayers]
for inconsistent buffer lengths.