Trait linfa_linalg::qr::LeastSquaresQr
source · pub trait LeastSquaresQr<B> {
type Output;
// Required method
fn least_squares(self, b: &B) -> Result<Self::Output>;
}
Expand description
Use QR decomposition to calculate least squares by reference. The A
matrix is still passed by
value.
Required Associated Types§
Required Methods§
sourcefn least_squares(self, b: &B) -> Result<Self::Output>
fn least_squares(self, b: &B) -> Result<Self::Output>
Find solution to A * x = b
such that ||A * x - b||^2
is minimized