hetri.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HETRI_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HETRI_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 chetri_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* info );
58 void zhetri_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK LDLH-BASED INVERSION FUNCTIONS (HETRI)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void hetri( char uplo, int n, complex<float>* A, int lda,
79  const int* ipiv, complex<float>* work, int* info );
80 
81 inline void hetri( char uplo, int n, complex<double>* A, int lda,
82  const int* ipiv, complex<double>* work, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
118 inline void hetri( char uplo, int n, complex<float>* A, int lda,
119  const int* ipiv, complex<float>* work, int* info )
120 {
121  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
122 
123  chetri_( &uplo, &n, reinterpret_cast<float*>( A ), &lda,
124  const_cast<int*>( ipiv ), reinterpret_cast<float*>( work ), info );
125 }
126 //*************************************************************************************************
127 
128 
129 //*************************************************************************************************
160 inline void hetri( char uplo, int n, complex<double>* A, int lda,
161  const int* ipiv, complex<double>* work, int* info )
162 {
163  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
164 
165  zhetri_( &uplo, &n, reinterpret_cast<double*>( A ), &lda,
166  const_cast<int*>( ipiv ), reinterpret_cast<double*>( work ), info );
167 }
168 //*************************************************************************************************
169 
170 } // namespace blaze
171 
172 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void hetri(char uplo, int n, complex< float > *A, int lda, const int *ipiv, complex< float > *work, int *info)
LAPACK kernel for the inversion of the given dense Hermitian indefinite single precision complex colu...
Definition: hetri.h:118
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