unmlq.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_UNMLQ_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_UNMLQ_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 cunmlq_( char* side, char* trans, int* m, int* n, int* k, float* A, int* lda, float* tau, float* C, int* ldc, float* work, int* lwork, int* info );
58 void zunmlq_( char* side, char* trans, int* m, int* n, int* k, double* A, int* lda, double* tau, double* C, int* ldc, double* work, int* lwork, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK FUNCTIONS TO MULTIPLY Q FROM A LQ DECOMPOSITION WITH A MATRIX (UNMLQ)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void unmlq( char side, char trans, int m, int n, int k, const complex<float>* A, int lda,
79  const complex<float>* tau, complex<float>* C, int ldc, complex<float>* work,
80  int lwork, int* info );
81 
82 inline void unmlq( char side, char trans, int m, int n, int k, const complex<double>* A, int lda,
83  const complex<double>* tau, complex<double>* C, int ldc, complex<double>* work,
84  int lwork, int* info );
86 //*************************************************************************************************
87 
88 
89 //*************************************************************************************************
135 inline void unmlq( char side, char trans, int m, int n, int k, const complex<float>* A, int lda,
136  const complex<float>* tau, complex<float>* C, int ldc, complex<float>* work,
137  int lwork, int* info )
138 {
139  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
140 
141  cunmlq_( &side, &trans, &m, &n, &k,
142  const_cast<float*>( reinterpret_cast<const float*>( A ) ), &lda,
143  const_cast<float*>( reinterpret_cast<const float*>( tau ) ),
144  reinterpret_cast<float*>( C ), &ldc, reinterpret_cast<float*>( work ),
145  &lwork, info );
146 }
147 //*************************************************************************************************
148 
149 
150 //*************************************************************************************************
196 inline void unmlq( char side, char trans, int m, int n, int k, const complex<double>* A, int lda,
197  const complex<double>* tau, complex<double>* C, int ldc, complex<double>* work,
198  int lwork, int* info )
199 {
200  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
201 
202  zunmlq_( &side, &trans, &m, &n, &k,
203  const_cast<double*>( reinterpret_cast<const double*>( A ) ), &lda,
204  const_cast<double*>( reinterpret_cast<const double*>( tau ) ),
205  reinterpret_cast<double*>( C ), &ldc, reinterpret_cast<double*>( work ),
206  &lwork, info );
207 }
208 //*************************************************************************************************
209 
210 } // namespace blaze
211 
212 #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 unmlq(char side, char trans, int m, int n, int k, const complex< float > *A, int lda, const complex< float > *tau, complex< float > *C, int ldc, complex< float > *work, int lwork, int *info)
LAPACK kernel for the multiplication of the single precision complex Q from a LQ decomposition with a...
Definition: unmlq.h:135
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:950
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