hetrf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HETRF_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HETRF_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 chetrf_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* lwork, int* info );
58 void zhetrf_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* lwork, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK LDLH DECOMPOSITION FUNCTIONS (HETRF)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void hetrf( char uplo, int n, complex<float>* A, int lda, int* ipiv,
79  complex<float>* work, int lwork, int* info );
80 
81 inline void hetrf( char uplo, int n, complex<double>* A, int lda, int* ipiv,
82  complex<double>* work, int lwork, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
134 inline void hetrf( char uplo, int n, complex<float>* A, int lda, int* ipiv,
135  complex<float>* work, int lwork, int* info )
136 {
137  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
138 
139  chetrf_( &uplo, &n, reinterpret_cast<float*>( A ), &lda, ipiv,
140  reinterpret_cast<float*>( work ), &lwork, info );
141 }
142 //*************************************************************************************************
143 
144 
145 //*************************************************************************************************
192 inline void hetrf( char uplo, int n, complex<double>* A, int lda, int* ipiv,
193  complex<double>* work, int lwork, int* info )
194 {
195  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
196 
197  zhetrf_( &uplo, &n, reinterpret_cast<double*>( A ), &lda, ipiv,
198  reinterpret_cast<double*>( work ), &lwork, info );
199 }
200 //*************************************************************************************************
201 
202 } // namespace blaze
203 
204 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void hetrf(char uplo, int n, complex< float > *A, int lda, int *ipiv, complex< float > *work, int lwork, int *info)
LAPACK kernel for the decomposition of the given dense Hermitian indefinite single precision complex ...
Definition: hetrf.h:134
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
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