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