orgrq.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORGRQ_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_ORGRQ_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/Complex.h>
45 
46 
47 //=================================================================================================
48 //
49 // LAPACK FORWARD DECLARATIONS
50 //
51 //=================================================================================================
52 
53 //*************************************************************************************************
55 extern "C" {
56 
57 void sorgrq_( int* m, int* n, int* k, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
58 void dorgrq_( int* m, int* n, int* k, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK FUNCTIONS TO RECONSTRUCT Q FROM A RQ DECOMPOSITION (ORGRQ)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void orgrq( int m, int n, int k, float* A, int lda, const float* tau,
79  float* work, int lwork, int* info );
80 
81 inline void orgrq( int m, int n, int k, double* A, int lda, const double* tau,
82  double* work, int lwork, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
117 inline void orgrq( int m, int n, int k, float* A, int lda, const float* tau, float* work, int lwork, int* info )
118 {
119  sorgrq_( &m, &n, &k, A, &lda, const_cast<float*>( tau ), work, &lwork, info );
120 }
121 //*************************************************************************************************
122 
123 
124 //*************************************************************************************************
154 inline void orgrq( int m, int n, int k, double* A, int lda, const double* tau, double* work, int lwork, int* info )
155 {
156  dorgrq_( &m, &n, &k, A, &lda, const_cast<double*>( tau ), work, &lwork, info );
157 }
158 //*************************************************************************************************
159 
160 } // namespace blaze
161 
162 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void orgrq(int m, int n, int k, float *A, int lda, const float *tau, float *work, int lwork, int *info)
LAPACK kernel for the reconstruction of the orthogonal matrix Q from a RQ decomposition.
Definition: orgrq.h:117
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
Header file for the complex data type.