geqlf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_GEQLF_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_GEQLF_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 sgeqlf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
58 void dgeqlf_( int* m, int* n, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
59 void cgeqlf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
60 void zgeqlf_( int* m, int* n, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
61 
62 }
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK QL DECOMPOSITION FUNCTIONS (GEQLF)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void geqlf( int m, int n, float* A, int lda, float* tau,
81  float* work, int lwork, int* info );
82 
83 inline void geqlf( int m, int n, double* A, int lda, double* tau,
84  double* work, int lwork, int* info );
85 
86 inline void geqlf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
87  complex<float>* work, int lwork, int* info );
88 
89 inline void geqlf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
90  complex<double>* work, int lwork, int* info );
92 //*************************************************************************************************
93 
94 
95 //*************************************************************************************************
144 inline void geqlf( int m, int n, float* A, int lda, float* tau,
145  float* work, int lwork, int* info )
146 {
147  sgeqlf_( &m, &n, A, &lda, tau, work, &lwork, info );
148 }
149 //*************************************************************************************************
150 
151 
152 //*************************************************************************************************
201 inline void geqlf( int m, int n, double* A, int lda, double* tau,
202  double* work, int lwork, int* info )
203 {
204  dgeqlf_( &m, &n, A, &lda, tau, work, &lwork, info );
205 }
206 //*************************************************************************************************
207 
208 
209 //*************************************************************************************************
258 inline void geqlf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
259  complex<float>* work, int lwork, int* info )
260 {
261  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
262 
263  cgeqlf_( &m, &n, reinterpret_cast<float*>( A ), &lda, reinterpret_cast<float*>( tau ),
264  reinterpret_cast<float*>( work ), &lwork, info );
265 }
266 //*************************************************************************************************
267 
268 
269 //*************************************************************************************************
318 inline void geqlf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
319  complex<double>* work, int lwork, int* info )
320 {
321  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
322 
323  zgeqlf_( &m, &n, reinterpret_cast<double*>( A ), &lda, reinterpret_cast<double*>( tau ),
324  reinterpret_cast<double*>( work ), &lwork, info );
325 }
326 //*************************************************************************************************
327 
328 } // namespace blaze
329 
330 #endif
Log level for high-level information.
Definition: LogLevel.h:80
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
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
void geqlf(int m, int n, float *A, int lda, float *tau, float *work, int lwork, int *info)
LAPACK kernel for the QL decomposition of the given dense single precision column-major matrix...
Definition: geqlf.h:144