numerics 0.1.0
Loading...
Searching...
No Matches
qr.cpp File Reference

QR dispatcher + qr_solve. More...

Go to the source code of this file.

Namespaces

namespace  num
 

Functions

QRResult num::qr (const Matrix &A, Backend backend=lapack_backend)
 QR factorization of an mxn matrix A (m >= n) via Householder reflections.
 
void num::qr_solve (const QRResult &f, const Vector &b, Vector &x)
 Solve the least-squares problem min ||A*x - b||_2.
 

Detailed Description

QR dispatcher + qr_solve.

Backend routing: Backend::lapack -> backends::lapack::qr (dgeqrf + dorgqr, blocked BLAS-3) everything else -> backends::seq::qr (Householder reflections)

Definition in file qr.cpp.