Blaze  3.6
gerqf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_GERQF_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_GERQF_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 sgerqf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
59 void dgerqf_( int* m, int* n, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
60 void cgerqf_( int* m, int* n, float* A, int* lda, float* tau, float* work, int* lwork, int* info );
61 void zgerqf_( int* m, int* n, double* A, int* lda, double* tau, double* work, int* lwork, int* info );
62 
63 }
64 #endif
65 
66 //*************************************************************************************************
67 
68 
69 
70 
71 namespace blaze {
72 
73 //=================================================================================================
74 //
75 // LAPACK RQ DECOMPOSITION FUNCTIONS (GERQF)
76 //
77 //=================================================================================================
78 
79 //*************************************************************************************************
82 void gerqf( int m, int n, float* A, int lda, float* tau,
83  float* work, int lwork, int* info );
84 
85 void gerqf( int m, int n, double* A, int lda, double* tau,
86  double* work, int lwork, int* info );
87 
88 void gerqf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
89  complex<float>* work, int lwork, int* info );
90 
91 void gerqf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
92  complex<double>* work, int lwork, int* info );
94 //*************************************************************************************************
95 
96 
97 //*************************************************************************************************
147 inline void gerqf( int m, int n, float* A, int lda, float* tau,
148  float* work, int lwork, int* info )
149 {
150 #if defined(INTEL_MKL_VERSION)
151  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
152 #endif
153 
154  sgerqf_( &m, &n, A, &lda, tau, work, &lwork, info );
155 }
156 //*************************************************************************************************
157 
158 
159 //*************************************************************************************************
209 inline void gerqf( int m, int n, double* A, int lda, double* tau,
210  double* work, int lwork, int* info )
211 {
212 #if defined(INTEL_MKL_VERSION)
213  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
214 #endif
215 
216  dgerqf_( &m, &n, A, &lda, tau, work, &lwork, info );
217 }
218 //*************************************************************************************************
219 
220 
221 //*************************************************************************************************
271 inline void gerqf( int m, int n, complex<float>* A, int lda, complex<float>* tau,
272  complex<float>* work, int lwork, int* info )
273 {
274  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
275 
276 #if defined(INTEL_MKL_VERSION)
277  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
278  using ET = MKL_Complex8;
279 #else
280  using ET = float;
281 #endif
282 
283  cgerqf_( &m, &n, reinterpret_cast<ET*>( A ), &lda, reinterpret_cast<ET*>( tau ),
284  reinterpret_cast<ET*>( work ), &lwork, info );
285 }
286 //*************************************************************************************************
287 
288 
289 //*************************************************************************************************
339 inline void gerqf( int m, int n, complex<double>* A, int lda, complex<double>* tau,
340  complex<double>* work, int lwork, int* info )
341 {
342  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
343 
344 #if defined(INTEL_MKL_VERSION)
345  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
346  using ET = MKL_Complex16;
347 #else
348  using ET = double;
349 #endif
350 
351  zgerqf_( &m, &n, reinterpret_cast<ET*>( A ), &lda, reinterpret_cast<ET*>( tau ),
352  reinterpret_cast<ET*>( work ), &lwork, info );
353 }
354 //*************************************************************************************************
355 
356 } // namespace blaze
357 
358 #endif
void gerqf(int m, int n, float *A, int lda, float *tau, float *work, int lwork, int *info)
LAPACK kernel for the RQ decomposition of the given dense single precision column-major matrix.
Definition: gerqf.h:147
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
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