<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
ungrq.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_UNGRQ_HH
13#define TLAPACK_UNGRQ_HH
14
16#include "tlapack/blas/scal.hpp"
21
22namespace tlapack {
23
27struct UngrqOpts {
28 size_t nb = 32;
29};
30
55template <TLAPACK_SMATRIX matrix_t, TLAPACK_SVECTOR vector_t>
56int ungrq(matrix_t& A, const vector_t& tau, const UngrqOpts& opts = {})
57{
58 return ungq(BACKWARD, ROWWISE_STORAGE, A, tau, UngqOpts{opts.nb});
59}
60
61} // namespace tlapack
62
63#endif // TLAPACK_UNGRQ_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 ungrq(matrix_t &A, const vector_t &tau, const UngrqOpts &opts={})
Generates an m-by-n matrix Q with orthonormal columns, which is defined as the last m rows of a produ...
Definition ungrq.hpp:56
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 ungrq.
Definition ungrq.hpp:27
size_t nb
Block size.
Definition ungrq.hpp:28