Dense row-major matrix with optional GPU storage.
Backend enum for linear algebra operations.
void qr_solve(const QRResult &f, const Vector &b, Vector &x)
Solve the least-squares problem min ||A*x - b||_2.
Backend
Selects which backend handles a linalg operation.
QRResult qr(const Matrix &A, Backend backend=lapack_backend)
QR factorization of an mxn matrix A (m >= n) via Householder reflections.
constexpr Backend lapack_backend
Result of a QR factorization: A = Q * R.
Matrix R
mxn upper triangular