pub fn least_squares(
a: &Matrix,
b: &[f64],
) -> NumericResult<LeastSquaresSolution>Expand description
Minimise ||A x - b||_2: a convenience for Qr::new followed by
Qr::solve_least_squares. Factor once with Qr when several
right-hand sides share A (one per coordinate when fitting points).
ยงErrors
As Qr::new and Qr::solve_least_squares.