pub fn validate_batch( layers: &[Vec<Layer>], tensor: &[Vec<Matrix3<Complex<f64>>>], energies_ev: &[f64], ) -> Result<()>
Shape and energy checks shared by the batched CPU and GPU entry points.