pub fn condition_number(j: &[f64], rows: usize, cols: usize) -> f64
The 2-norm condition number of a rows x cols matrix (row by row): sqrt of the largest over the smallest eigenvalue of J^T J; infinite where it is singular.