<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
unglq.hpp
Go to the documentation of this file.
1
5//
6// Copyright (c) 2021-2023, University of Colorado Denver. All rights reserved.
7//
8// This file is part of <T>LAPACK.
9// <T>LAPACK is free software: you can redistribute it and/or modify it under
10// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
11
12#ifndef TLAPACK_UNGLQ_HH
13#define TLAPACK_UNGLQ_HH
14
16#include "tlapack/blas/scal.hpp"
21
22namespace tlapack {
23
27struct UnglqOpts {
28 size_t nb = 32;
29};
30
58template <TLAPACK_SMATRIX matrix_t, TLAPACK_SVECTOR vector_t>
59int unglq(matrix_t& A, const vector_t& tau, const UnglqOpts& opts = {})
60{
61 return ungq(FORWARD, ROWWISE_STORAGE, A, tau, UngqOpts{opts.nb});
62}
63
64} // namespace tlapack
65
66#endif // TLAPACK_UNGLQ_HH
int ungq(direction_t direction, storage_t storeMode, matrix_t &A, const vector_t &tau, const UngqOpts &opts={})
Generates a matrix Q that is the product of elementary reflectors.
Definition ungq.hpp:352
int unglq(matrix_t &A, const vector_t &tau, const UnglqOpts &opts={})
Generates all or part of the unitary matrix Q from an LQ factorization determined by gelqf.
Definition unglq.hpp:59
Applies a Householder block reflector to a matrix.
Forms the triangular factor T of a block reflector.
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 unglq.
Definition unglq.hpp:27
size_t nb
Block size.
Definition unglq.hpp:28