Dense row-major matrix with optional GPU storage.
void qr_solve(const QRResult &f, const Vector &b, Vector &x)
Solve the least-squares problem min ||A*x - b||_2.
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.
QRResult qr(const Matrix &A)
QR factorization of an mxn matrix A (m >= n) via Householder reflections.
Backend enum for linear algebra operations.
Result of a QR factorization: A = Q * R.
Matrix R
mxn upper triangular