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