unmrq.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_UNMRQ_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_UNMRQ_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 cunmrq_( 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 zunmrq_( 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 RQ DECOMPOSITION WITH A MATRIX (UNMRQ)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void unmrq( 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 unmrq( 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 //*************************************************************************************************
136 inline void unmrq( char side, char trans, int m, int n, int k, const complex<float>* A, int lda,
137  const complex<float>* tau, complex<float>* C, int ldc, complex<float>* work,
138  int lwork, int* info )
139 {
140  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
141 
142  cunmrq_( &side, &trans, &m, &n, &k,
143  const_cast<float*>( reinterpret_cast<const float*>( A ) ), &lda,
144  const_cast<float*>( reinterpret_cast<const float*>( tau ) ),
145  reinterpret_cast<float*>( C ), &ldc, reinterpret_cast<float*>( work ),
146  &lwork, info );
147 }
148 //*************************************************************************************************
149 
150 
151 //*************************************************************************************************
198 inline void unmrq( char side, char trans, int m, int n, int k, const complex<double>* A, int lda,
199  const complex<double>* tau, complex<double>* C, int ldc, complex<double>* work,
200  int lwork, int* info )
201 {
202  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
203 
204  zunmrq_( &side, &trans, &m, &n, &k,
205  const_cast<double*>( reinterpret_cast<const double*>( A ) ), &lda,
206  const_cast<double*>( reinterpret_cast<const double*>( tau ) ),
207  reinterpret_cast<double*>( C ), &ldc, reinterpret_cast<double*>( work ),
208  &lwork, info );
209 }
210 //*************************************************************************************************
211 
212 } // namespace blaze
213 
214 #endif
void unmrq(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 Q from a RQ decomposition with another m...
Definition: unmrq.h:136
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:733
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