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 #if !defined(INTEL_MKL_VERSION)
56 extern "C" {
57 
58 void ssyev_( char* jobz, char* uplo, int* n, float* A, int* lda, float* w, float* work, int* lwork, int* info );
59 void dsyev_( char* jobz, char* uplo, int* n, double* A, int* lda, double* w, double* work, int* lwork, int* info );
60 
61 }
62 #endif
63 
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK SYMMETRIC MATRIX EIGENVALUE FUNCTIONS (SYEV)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void syev( char jobz, char uplo, int n, float* A, int lda,
81  float* w, float* work, int lwork, int* info );
82 
83 inline void syev( char jobz, char uplo, int n, double* A, int lda,
84  double* w, double* work, int lwork, int* info );
86 //*************************************************************************************************
87 
88 
89 //*************************************************************************************************
129 inline void syev( char jobz, char uplo, int n, float* A, int lda,
130  float* w, float* work, int lwork, int* info )
131 {
132 #if defined(INTEL_MKL_VERSION)
133  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
134 #endif
135 
136  ssyev_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, info );
137 }
138 //*************************************************************************************************
139 
140 
141 //*************************************************************************************************
181 inline void syev( char jobz, char uplo, int n, double* A, int lda,
182  double* w, double* work, int lwork, int* info )
183 {
184 #if defined(INTEL_MKL_VERSION)
185  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
186 #endif
187 
188  dsyev_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, info );
189 }
190 //*************************************************************************************************
191 
192 } // namespace blaze
193 
194 #endif
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
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:129
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