Skip to main content

condition_number

Function condition_number 

Source
pub fn condition_number(j: &[[f64; 2]; 2]) -> f64
Expand description

The 2-norm condition number of a 2 x 2 matrix: the square root of the larger over the smaller eigenvalue of J^T J, m +- sqrt(((a - c) / 2)^2 + b^2) with m = (a + c) / 2 for J^T J = [[a, b], [b, c]].