Blaze  3.6
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 #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 ssyev_( char* jobz, char* uplo, int* n, float* A, int* lda, float* w, float* work,
60  int* lwork, int* info, blaze::fortran_charlen_t njobz, blaze::fortran_charlen_t nuplo );
61 void dsyev_( char* jobz, char* uplo, int* n, double* A, int* lda, double* w, double* work,
62  int* lwork, int* info, blaze::fortran_charlen_t njobz, blaze::fortran_charlen_t nuplo );
63 
64 }
65 #endif
66 
67 //*************************************************************************************************
68 
69 
70 
71 
72 namespace blaze {
73 
74 //=================================================================================================
75 //
76 // LAPACK SYMMETRIC MATRIX EIGENVALUE FUNCTIONS (SYEV)
77 //
78 //=================================================================================================
79 
80 //*************************************************************************************************
83 void syev( char jobz, char uplo, int n, float* A, int lda,
84  float* w, float* work, int lwork, int* info );
85 
86 void syev( char jobz, char uplo, int n, double* A, int lda,
87  double* w, double* work, int lwork, int* info );
89 //*************************************************************************************************
90 
91 
92 //*************************************************************************************************
132 inline void syev( char jobz, char uplo, int n, float* A, int lda,
133  float* w, float* work, int lwork, int* info )
134 {
135 #if defined(INTEL_MKL_VERSION)
136  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
137 #endif
138 
139  ssyev_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, info,
141 }
142 //*************************************************************************************************
143 
144 
145 //*************************************************************************************************
185 inline void syev( char jobz, char uplo, int n, double* A, int lda,
186  double* w, double* work, int lwork, int* info )
187 {
188 #if defined(INTEL_MKL_VERSION)
189  BLAZE_STATIC_ASSERT( sizeof( MKL_INT ) == sizeof( int ) );
190 #endif
191 
192  dsyev_( &jobz, &uplo, &n, A, &lda, w, work, &lwork, info,
194 }
195 //*************************************************************************************************
196 
197 } // namespace blaze
198 
199 #endif
Header file for basic type definitions.
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:132
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.