orgql.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORGQL_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_ORGQL_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 #if !defined(INTEL_MKL_VERSION)
56 extern "C" {
57 
58 void sorgql_( int* m, int* n, int* k, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
59 void dorgql_( int* m, int* n, int* k, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
60 
61 }
62 #endif
63 
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK FUNCTIONS TO RECONSTRUCT Q FROM A QL DECOMPOSITION (ORGQL)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void orgql( int m, int n, int k, float* A, int lda, const float* tau,
81  float* work, int lwork, int* info );
82 
83 inline void orgql( int m, int n, int k, double* A, int lda, const double* tau,
84  double* work, int lwork, int* info );
86 //*************************************************************************************************
87 
88 
89 //*************************************************************************************************
120 inline void orgql( int m, int n, int k, float* A, int lda, const float* tau, float* work, int lwork, int* info )
121 {
122 #if defined(INTEL_MKL_VERSION)
123  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
124 #endif
125 
126  sorgql_( &m, &n, &k, A, &lda, const_cast<float*>( tau ), work, &lwork, info );
127 }
128 //*************************************************************************************************
129 
130 
131 //*************************************************************************************************
162 inline void orgql( int m, int n, int k, double* A, int lda, const double* tau, double* work, int lwork, int* info )
163 {
164 #if defined(INTEL_MKL_VERSION)
165  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
166 #endif
167 
168  dorgql_( &m, &n, &k, A, &lda, const_cast<double*>( tau ), work, &lwork, info );
169 }
170 //*************************************************************************************************
171 
172 } // namespace blaze
173 
174 #endif
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
void orgql(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 QL decomposition.
Definition: orgql.h:120
Header file for the complex data type.
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:112