Blaze  3.6
orgr2.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORGR2_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_ORGR2_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 sorgr2_( int* m, int* n, int* k, float* A, int* lda, float* tau, float* work, int* info );
59 void dorgr2_( int* m, int* n, int* k, double* A, int* lda, double* tau, double* work, 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 RQ DECOMPOSITION (ORGR2)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 void orgr2( int m, int n, int k, float* A, int lda, const float* tau, float* work, int* info );
81 
82 void orgr2( int m, int n, int k, double* A, int lda, const double* tau, double* work, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
117 inline void orgr2( int m, int n, int k, float* A, int lda, const float* tau, float* work, int* info )
118 {
119 #if defined(INTEL_MKL_VERSION)
120  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
121 #endif
122 
123  sorgr2_( &m, &n, &k, A, &lda, const_cast<float*>( tau ), work, info );
124 }
125 //*************************************************************************************************
126 
127 
128 //*************************************************************************************************
158 inline void orgr2( int m, int n, int k, double* A, int lda, const double* tau, double* work, int* info )
159 {
160 #if defined(INTEL_MKL_VERSION)
161  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
162 #endif
163 
164  dorgr2_( &m, &n, &k, A, &lda, const_cast<double*>( tau ), work, info );
165 }
166 //*************************************************************************************************
167 
168 } // namespace blaze
169 
170 #endif
void orgr2(int m, int n, int k, float *A, int lda, const float *tau, float *work, int *info)
LAPACK kernel for the reconstruction of the orthogonal matrix Q from a RQ decomposition.
Definition: orgr2.h:117
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