10#ifndef TLAPACK_HOUSEHOLDER_RQ_HH
11#define TLAPACK_HOUSEHOLDER_RQ_HH
40template <
class T, TLAPACK_MATRIX matrix_t, TLAPACK_VECTOR vector_t>
46 if (opts.variant == HouseholderRQVariant::Level2)
47 return gerq2_worksize<T>(A, tau);
49 return gerqf_worksize<T>(A, tau, opts);
69 if (opts.variant == HouseholderRQVariant::Level2)
109template <TLAPACK_MATRIX matrix_t, TLAPACK_VECTOR vector_t>
115 if (opts.variant == HouseholderRQVariant::Level2)
116 return gerq2(A, tau);
118 return gerqf(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 gerq2(matrix_t &A, vector_t &tau)
Computes an RQ factorization of a matrix A.
Definition gerq2.hpp:130
int gerqf(A_t &A, tau_t &tau, const GerqfOpts &opts={})
Computes an RQ factorization of an m-by-n matrix A using a blocked algorithm.
Definition gerqf.hpp:160
int gerq2_work(matrix_t &A, vector_t &tau, work_t &work)
Computes an RQ factorization of a matrix A. Workspace is provided as an argument.
Definition gerq2.hpp:60
int gerqf_work(A_t &A, tau_t &tau, work_t &work, const GerqfOpts &opts={})
Computes an RQ factorization of an m-by-n matrix A using a blocked algorithm. Workspace is provided...
Definition gerqf.hpp:80
int householder_rq_work(matrix_t &A, vector_t &tau, workspace_t &work, const HouseholderRQOpts &opts={})
Computes a RQ factorization of an m-by-n matrix A. Workspace is provided as an argument.
Definition householder_rq.hpp:63
int householder_rq(matrix_t &A, vector_t &tau, const HouseholderRQOpts &opts={})
Computes a RQ factorization of an m-by-n matrix A.
Definition householder_rq.hpp:110
constexpr WorkInfo householder_rq_worksize(const matrix_t &A, const vector_t &tau, const HouseholderRQOpts &opts={})
Worspace query of householder_rq()
Definition householder_rq.hpp:41
HouseholderRQVariant
Variants of the algorithm to compute the RQ factorization.
Definition householder_rq.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 gerqf.
Definition gerqf.hpp:24
Options struct for householder_rq()
Definition householder_rq.hpp:23
Output information in the workspace query.
Definition workspace.hpp:16