gelqf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_GELQF_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_GELQF_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 sgelqf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
58 void dgelqf_( int* m, int* n, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
59 void cgelqf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
60 void zgelqf_( 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 LQ DECOMPOSITION FUNCTIONS (GELQF)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void gelqf( int m, int n, float* A, int lda, float* tau,
81  float* work, int lwork, int* info );
82 
83 inline void gelqf( int m, int n, double* A, int lda, double* tau,
84  double* work, int lwork, int* info );
85 
86 inline void gelqf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
87  complex<float>* work, int lwork, int* info );
88 
89 inline void gelqf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
90  complex<double>* work, int lwork, int* info );
92 //*************************************************************************************************
93 
94 
95 //*************************************************************************************************
143 inline void gelqf( int m, int n, float* A, int lda, float* tau,
144  float* work, int lwork, int* info )
145 {
146  sgelqf_( &m, &n, A, &lda, tau, work, &lwork, info );
147 }
148 //*************************************************************************************************
149 
150 
151 //*************************************************************************************************
199 inline void gelqf( int m, int n, double* A, int lda, double* tau,
200  double* work, int lwork, int* info )
201 {
202  dgelqf_( &m, &n, A, &lda, tau, work, &lwork, info );
203 }
204 //*************************************************************************************************
205 
206 
207 //*************************************************************************************************
255 inline void gelqf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
256  complex<float>* work, int lwork, int* info )
257 {
258  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
259 
260  cgelqf_( &m, &n, reinterpret_cast<float*>( A ), &lda, reinterpret_cast<float*>( tau ),
261  reinterpret_cast<float*>( work ), &lwork, info );
262 }
263 //*************************************************************************************************
264 
265 
266 //*************************************************************************************************
314 inline void gelqf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
315  complex<double>* work, int lwork, int* info )
316 {
317  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
318 
319  zgelqf_( &m, &n, reinterpret_cast<double*>( A ), &lda, reinterpret_cast<double*>( tau ),
320  reinterpret_cast<double*>( work ), &lwork, info );
321 }
322 //*************************************************************************************************
323 
324 } // namespace blaze
325 
326 #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.
void gelqf(int m, int n, float *A, int lda, float *tau, float *work, int lwork, int *info)
LAPACK kernel for the LQ decomposition of the given dense single precision column-major matrix...
Definition: gelqf.h:143
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