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