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