Blaze  3.6
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 #include <blaze/util/Types.h>
46 
47 
48 //=================================================================================================
49 //
50 // LAPACK FORWARD DECLARATIONS
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
56 #if !defined(INTEL_MKL_VERSION)
57 extern "C" {
58 
59 void ssyevd_( char* jobz, char* uplo, int* n, float* A, int* lda, float* w,
60  float* work, int* lwork, int* iwork, int* liwork, int* info,
62 void dsyevd_( char* jobz, char* uplo, int* n, double* A, int* lda, double* w,
63  double* work, int* lwork, int* iwork, int* liwork, int* info,
65 
66 }
67 #endif
68 
69 //*************************************************************************************************
70 
71 
72 
73 
74 namespace blaze {
75 
76 //=================================================================================================
77 //
78 // LAPACK SYMMETRIC MATRIX EIGENVALUE FUNCTIONS (SYEVD)
79 //
80 //=================================================================================================
81 
82 //*************************************************************************************************
85 void syevd( char jobz, char uplo, int n, float* A, int lda, float* w,
86  float* work, int lwork, int* iwork, int liwork, int* info );
87 
88 void syevd( char jobz, char uplo, int n, double* A, int lda, double* w,
89  double* work, int lwork, int* iwork, int liwork, int* info );
91 //*************************************************************************************************
92 
93 
94 //*************************************************************************************************
136 inline void syevd( char jobz, char uplo, int n, float* A, int lda, float* w,
137  float* work, int lwork, int* iwork, int liwork, int* info )
138 {
139 #if defined(INTEL_MKL_VERSION)
140  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
141 #endif
142 
143  ssyevd_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, iwork, &liwork, info,
145 }
146 //*************************************************************************************************
147 
148 
149 //*************************************************************************************************
191 inline void syevd( char jobz, char uplo, int n, double* A, int lda, double* w,
192  double* work, int lwork, int* iwork, int liwork, int* info )
193 {
194 #if defined(INTEL_MKL_VERSION)
195  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
196 #endif
197 
198  dsyevd_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, iwork, &liwork, info,
200 }
201 //*************************************************************************************************
202 
203 } // namespace blaze
204 
205 #endif
Header file for basic type definitions.
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
Size type of the Blaze library.
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:136