10#ifndef TLAPACK_HOUSEHOLDER_QR_HH
11#define TLAPACK_HOUSEHOLDER_QR_HH
40template <
class T, TLAPACK_MATRIX matrix_t, TLAPACK_VECTOR vector_t>
46 if (opts.variant == HouseholderQRVariant::Level2)
47 return geqr2_worksize<T>(A, tau);
49 return geqrf_worksize<T>(A, tau, opts);
69 if (opts.variant == HouseholderQRVariant::Level2)
108template <TLAPACK_MATRIX matrix_t, TLAPACK_VECTOR vector_t>
114 if (opts.variant == HouseholderQRVariant::Level2)
115 return geqr2(A, tau);
117 return geqrf(A, tau, opts);
#define TLAPACK_WORKSPACE
Macro for tlapack::concepts::Workspace compatible with C++17.
Definition concepts.hpp:912
#define TLAPACK_VECTOR
Macro for tlapack::concepts::Vector compatible with C++17.
Definition concepts.hpp:906
#define TLAPACK_MATRIX
Macro for tlapack::concepts::Matrix compatible with C++17.
Definition concepts.hpp:896
int geqr2(matrix_t &A, vector_t &tau)
Computes a QR factorization of a matrix A.
Definition geqr2.hpp:132
int geqrf(A_t &A, tau_t &tau, const GeqrfOpts &opts={})
Computes a QR factorization of an m-by-n matrix A using a blocked algorithm.
Definition geqrf.hpp:158
int geqrf_work(A_t &A, tau_t &tau, work_t &work, const GeqrfOpts &opts={})
Computes a QR factorization of an m-by-n matrix A using a blocked algorithm. Workspace is provided ...
Definition geqrf.hpp:80
int geqr2_work(matrix_t &A, vector_t &tau, work_t &work)
Computes a QR factorization of a matrix A. Workspace is provided as an argument.
Definition geqr2.hpp:60
int householder_qr_work(matrix_t &A, vector_t &tau, workspace_t &work, const HouseholderQROpts &opts={})
Computes a QR factorization of an m-by-n matrix A. Workspace is provided as an argument.
Definition householder_qr.hpp:63
int householder_qr(matrix_t &A, vector_t &tau, const HouseholderQROpts &opts={})
Computes a QR factorization of an m-by-n matrix A.
Definition householder_qr.hpp:109
constexpr WorkInfo householder_qr_worksize(const matrix_t &A, const vector_t &tau, const HouseholderQROpts &opts={})
Worspace query of householder_qr()
Definition householder_qr.hpp:41
HouseholderQRVariant
Variants of the algorithm to compute the QR factorization.
Definition householder_qr.hpp:20
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113
Options struct for geqrf.
Definition geqrf.hpp:24
Options struct for householder_qr()
Definition householder_qr.hpp:23
Output information in the workspace query.
Definition workspace.hpp:16