hesv.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HESV_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HESV_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 chesv_( char* uplo, int* n, int* nrhs, float* A, int* lda, int* ipiv, float* b, int* ldb, float* work, int* lwork, int* info );
58 void zhesv_( char* uplo, int* n, int* nrhs, double* A, int* lda, int* ipiv, double* b, int* ldb, double* work, int* lwork, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK HERMITIAN INDEFINITE LINEAR SYSTEM FUNCTIONS (HESV)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void hesv( char uplo, int n, int nrhs, complex<float>* A, int lda, int* ipiv,
79  complex<float>* B, int ldb, complex<float>* work, int lwork, int* info );
80 
81 inline void hesv( char uplo, int n, int nrhs, complex<double>* A, int lda, int* ipiv,
82  complex<double>* B, int ldb, complex<double>* work, int lwork, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
135 inline void hesv( char uplo, int n, int nrhs, complex<float>* A, int lda, int* ipiv,
136  complex<float>* B, int ldb, complex<float>* work, int lwork, int* info )
137 {
138  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
139 
140  chesv_( &uplo, &n, &nrhs, reinterpret_cast<float*>( A ), &lda, ipiv,
141  reinterpret_cast<float*>( B ), &ldb, reinterpret_cast<float*>( work ), &lwork, info );
142 }
143 //*************************************************************************************************
144 
145 
146 //*************************************************************************************************
194 inline void hesv( char uplo, int n, int nrhs, complex<double>* A, int lda, int* ipiv,
195  complex<double>* B, int ldb, complex<double>* work, int lwork, int* info )
196 {
197  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
198 
199  zhesv_( &uplo, &n, &nrhs, reinterpret_cast<double*>( A ), &lda, ipiv,
200  reinterpret_cast<double*>( B ), &ldb, reinterpret_cast<double*>( work ), &lwork, info );
201 }
202 //*************************************************************************************************
203 
204 } // namespace blaze
205 
206 #endif
Log level for high-level information.
Definition: LogLevel.h:80
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time assertion.
void hesv(char uplo, int n, int nrhs, complex< float > *A, int lda, int *ipiv, complex< float > *B, int ldb, complex< float > *work, int lwork, int *info)
LAPACK kernel for solving a Hermitian indefinite single precision complex linear system of equations ...
Definition: hesv.h:135
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