Blaze  3.6
orglq.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_ORGLQ_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_ORGLQ_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 sorglq_( int* m, int* n, int* k, float* A, int* lda, float* tau,
59  float* work, int* lwork, int* info );
60 void dorglq_( int* m, int* n, int* k, double* A, int* lda, double* tau,
61  double* work, int* lwork, int* info );
62 
63 }
64 #endif
65 
66 //*************************************************************************************************
67 
68 
69 
70 
71 namespace blaze {
72 
73 //=================================================================================================
74 //
75 // LAPACK FUNCTIONS TO RECONSTRUCT Q FROM A LQ DECOMPOSITION (ORGLQ)
76 //
77 //=================================================================================================
78 
79 //*************************************************************************************************
82 void orglq( int m, int n, int k, float* A, int lda, const float* tau,
83  float* work, int lwork, int* info );
84 
85 void orglq( int m, int n, int k, double* A, int lda, const double* tau,
86  double* work, int lwork, int* info );
88 //*************************************************************************************************
89 
90 
91 //*************************************************************************************************
122 inline void orglq( int m, int n, int k, float* A, int lda, const float* tau, float* work, int lwork, int* info )
123 {
124 #if defined(INTEL_MKL_VERSION)
125  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
126 #endif
127 
128  sorglq_( &m, &n, &k, A, &lda, const_cast<float*>( tau ), work, &lwork, info );
129 }
130 //*************************************************************************************************
131 
132 
133 //*************************************************************************************************
164 inline void orglq( int m, int n, int k, double* A, int lda, const double* tau, double* work, int lwork, int* info )
165 {
166 #if defined(INTEL_MKL_VERSION)
167  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
168 #endif
169 
170  dorglq_( &m, &n, &k, A, &lda, const_cast<double*>( tau ), work, &lwork, info );
171 }
172 //*************************************************************************************************
173 
174 } // namespace blaze
175 
176 #endif
void orglq(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 LQ decomposition.
Definition: orglq.h:122
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