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§

source

fn least_squares(self, b: &B) -> Result<Self::Output>

Find solution to A * x = b such that ||A * x - b||^2 is minimized

Implementations on Foreign Types§

source§

impl<A: NdFloat, Si: DataMut<Elem = A>, So: Data<Elem = A>> LeastSquaresQr<ArrayBase<So, Dim<[usize; 2]>>> for ArrayBase<Si, Ix2>

Implementors§