<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
ung2r.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_LEGACY_UNG2R_HH
13#define TLAPACK_LEGACY_UNG2R_HH
14
16
17namespace tlapack {
18namespace legacy {
19
43 template <typename TA, typename TT>
44 int ung2r(idx_t m, idx_t n, idx_t k, TA* A, idx_t lda, const TT* tau)
45 {
46 using internal::create_matrix;
47 using internal::create_vector;
48
49 // check arguments
54
55 // quick return
56 if (n <= 0) return 0;
57
58 // Matrix views
59 auto A_ = create_matrix<TA>(A, m, n, lda);
60 auto tau_ = create_vector((TT*)tau, min(m, n));
61
62 return ung2r(A_, tau_);
63 }
64
65} // namespace legacy
66} // namespace tlapack
67
68#endif // TLAPACK_LEGACY_UNG2R_HH
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
int ung2r(idx_t m, idx_t n, idx_t k, TA *A, idx_t lda, const TT *tau)
Generates a m-by-n matrix Q with orthogonal columns.
Definition ung2r.hpp:44
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