heevx.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HEEVX_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HEEVX_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 cheevx_( char* jobz, char* range, char* uplo, int* n, float* A, int* lda, float* vl, float* vu, int* il, int* iu, float* abstol, int* m, float* w, float* Z, int* ldz, float* work, int* lwork, float* rwork, int* iwork, int* ifail, int* info );
58 void zheevx_( char* jobz, char* range, char* uplo, int* n, double* A, int* lda, double* vl, double* vu, int* il, int* iu, double* abstol, int* m, double* w, double* Z, int* ldz, double* work, int* lwork, double* rwork, int* iwork, int* ifail, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK HERMITIAN MATRIX EIGENVALUE FUNCTIONS (HEEVX)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void heevx( char jobz, char range, char uplo, int n, complex<float>* A, int lda,
79  float vl, float vu, int il, int iu, float abstol, int* m, float* w,
80  complex<float>* Z, int ldz, complex<float>* work, int lwork,
81  float* rwork, int* iwork, int* ifail, int* info );
82 
83 inline void heevx( char jobz, char range, char uplo, int n, complex<double>* A, int lda,
84  double vl, double vu, int il, int iu, double abstol, int* m, double* w,
85  complex<double>* Z, int ldz, complex<double>* work, int lwork,
86  double* rwork, int* iwork, int* ifail, int* info );
88 //*************************************************************************************************
89 
90 
91 //*************************************************************************************************
149 inline void heevx( char jobz, char range, char uplo, int n, complex<float>* A, int lda,
150  float vl, float vu, int il, int iu, float abstol, int* m, float* w,
151  complex<float>* Z, int ldz, complex<float>* work, int lwork,
152  float* rwork, int* iwork, int* ifail, int* info )
153 {
154  ++il;
155  ++iu;
156 
157  cheevx_( &jobz, &range, &uplo, &n, reinterpret_cast<float*>( A ), &lda, &vl, &vu, &il, &iu,
158  &abstol, m, w, reinterpret_cast<float*>( Z ), &ldz, reinterpret_cast<float*>( work ),
159  &lwork, rwork, iwork, ifail, info );
160 }
161 //*************************************************************************************************
162 
163 
164 //*************************************************************************************************
222 inline void heevx( char jobz, char range, char uplo, int n, complex<double>* A, int lda,
223  double vl, double vu, int il, int iu, double abstol, int* m, double* w,
224  complex<double>* Z, int ldz, complex<double>* work, int lwork,
225  double* rwork, int* iwork, int* ifail, int* info )
226 {
227  ++il;
228  ++iu;
229 
230  zheevx_( &jobz, &range, &uplo, &n, reinterpret_cast<double*>( A ), &lda, &vl, &vu, &il, &iu,
231  &abstol, m, w, reinterpret_cast<double*>( Z ), &ldz, reinterpret_cast<double*>( work ),
232  &lwork, rwork, iwork, ifail, info );
233 }
234 //*************************************************************************************************
235 
236 } // namespace blaze
237 
238 #endif
void heevx(char jobz, char range, char uplo, int n, complex< float > *A, int lda, float vl, float vu, int il, int iu, float abstol, int *m, float *w, complex< float > *Z, int ldz, complex< float > *work, int lwork, float *rwork, int *iwork, int *ifail, int *info)
LAPACK kernel for computing the eigenvalues of the given dense Hermitian single precision complex col...
Definition: heevx.h:149
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
Header file for the complex data type.