hetrs.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_HETRS_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_HETRS_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 chetrs_( char* uplo, int* n, int* nrhs, float* A, int* lda, int* ipiv, float* B, int* ldb, int* info );
58 void zhetrs_( char* uplo, int* n, int* nrhs, double* A, int* lda, int* ipiv, double* B, int* ldb, int* info );
59 
60 }
62 //*************************************************************************************************
63 
64 
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // LAPACK LDLH-BASED SUBSTITUTION FUNCTIONS (HETRS)
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
78 inline void hetrs( char uplo, int n, int nrhs, const complex<float>* A, int lda, const int* ipiv,
79  complex<float>* B, int ldb, int* info );
80 
81 inline void hetrs( char uplo, int n, int nrhs, const complex<double>* A, int lda, const int* ipiv,
82  complex<double>* B, int ldb, int* info );
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
120 inline void hetrs( char uplo, int n, int nrhs, const complex<float>* A, int lda,
121  const int* ipiv, complex<float>* B, int ldb, int* info )
122 {
123  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
124 
125  chetrs_( &uplo, &n, &nrhs, const_cast<float*>( reinterpret_cast<const float*>( A ) ),
126  &lda, const_cast<int*>( ipiv ), reinterpret_cast<float*>( B ), &ldb, info );
127 }
128 //*************************************************************************************************
129 
130 
131 //*************************************************************************************************
164 inline void hetrs( char uplo, int n, int nrhs, const complex<double>* A, int lda,
165  const int* ipiv, complex<double>* B, int ldb, int* info )
166 {
167  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
168 
169  zhetrs_( &uplo, &n, &nrhs, const_cast<double*>( reinterpret_cast<const double*>( A ) ),
170  &lda, const_cast<int*>( ipiv ), reinterpret_cast<double*>( B ), &ldb, info );
171 }
172 //*************************************************************************************************
173 
174 } // namespace blaze
175 
176 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void hetrs(char uplo, int n, int nrhs, const complex< float > *A, int lda, const int *ipiv, complex< float > *B, int ldb, int *info)
LAPACK kernel for the substitution step of solving a symmetric indefinite single precision complex li...
Definition: hetrs.h:120
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