heev.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HEEV_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HEEV_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 cheev_( char* jobz, char* uplo, int* n, float* A, int* lda, float* w, float* work, int* lwork, float* rwork, int* info );
58 void zheev_( char* jobz, char* uplo, int* n, double* A, int* lda, double* w, double* work, int* lwork, double* rwork, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK HERMITIAN MATRIX EIGENVALUE FUNCTIONS (HEEV)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void heev( char jobz, char uplo, int n, complex<float>* A, int lda,
79  float* w, complex<float>* work, int lwork, float* rwork, int* info );
80 
81 inline void heev( char jobz, char uplo, int n, complex<double>* A, int lda,
82  double* w, complex<double>* work, int lwork, float* rwork, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
128 inline void heev( char jobz, char uplo, int n, complex<float>* A, int lda,
129  float* w, complex<float>* work, int lwork, float* rwork, int* info )
130 {
131  cheev_( &jobz, &uplo, &n, reinterpret_cast<float*>( A ), &lda, w,
132  reinterpret_cast<float*>( work ), &lwork, rwork, info );
133 }
134 //*************************************************************************************************
135 
136 
137 //*************************************************************************************************
178 inline void heev( char jobz, char uplo, int n, complex<double>* A, int lda,
179  double* w, complex<double>* work, int lwork, double* rwork, int* info )
180 {
181  zheev_( &jobz, &uplo, &n, reinterpret_cast<double*>( A ), &lda, w,
182  reinterpret_cast<double*>( work ), &lwork, rwork, info );
183 }
184 //*************************************************************************************************
185 
186 } // namespace blaze
187 
188 #endif
void heev(char jobz, char uplo, int n, complex< float > *A, int lda, float *w, complex< float > *work, int lwork, float *rwork, int *info)
LAPACK kernel for computing the eigenvalues of the given dense Hermitian single precision column-majo...
Definition: heev.h:128
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
Header file for the complex data type.