<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
ungqr.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_UNGQR_HH
13#define TLAPACK_UNGQR_HH
14
16#include "tlapack/blas/scal.hpp"
21
22namespace tlapack {
23
27struct UngqrOpts {
28 size_t nb = 32;
29};
30
51template <TLAPACK_SMATRIX matrix_t, TLAPACK_SVECTOR vector_t>
52int ungqr(matrix_t& A, const vector_t& tau, const UngqrOpts& opts = {})
53{
54 return ungq(FORWARD, COLUMNWISE_STORAGE, A, tau, UngqOpts{opts.nb});
55}
56
57} // namespace tlapack
58
59#endif // TLAPACK_UNGQR_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 ungqr(matrix_t &A, const vector_t &tau, const UngqrOpts &opts={})
Generates a matrix Q with orthogonal columns.
Definition ungqr.hpp:52
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 ungqr.
Definition ungqr.hpp:27
size_t nb
Block size.
Definition ungqr.hpp:28