sytrf.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_SYTRF_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_SYTRF_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 ssytrf_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* lwork, int* info );
58 void dsytrf_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* lwork, int* info );
59 void csytrf_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* lwork, int* info );
60 void zsytrf_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* lwork, int* info );
61 
62 }
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK LDLT DECOMPOSITION FUNCTIONS (SYTRF)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void sytrf( char uplo, int n, float* A, int lda, int* ipiv,
81  float* work, int lwork, int* info );
82 
83 inline void sytrf( char uplo, int n, double* A, int lda, int* ipiv,
84  double* work, int lwork, int* info );
85 
86 inline void sytrf( char uplo, int n, complex<float>* A, int lda, int* ipiv,
87  complex<float>* work, int lwork, int* info );
88 
89 inline void sytrf( char uplo, int n, complex<double>* A, int lda, int* ipiv,
90  complex<double>* work, int lwork, int* info );
92 //*************************************************************************************************
93 
94 
95 //*************************************************************************************************
142 inline void sytrf( char uplo, int n, float* A, int lda, int* ipiv,
143  float* work, int lwork, int* info )
144 {
145  ssytrf_( &uplo, &n, A, &lda, ipiv, work, &lwork, info );
146 }
147 //*************************************************************************************************
148 
149 
150 //*************************************************************************************************
197 inline void sytrf( char uplo, int n, double* A, int lda, int* ipiv,
198  double* work, int lwork, int* info )
199 {
200  dsytrf_( &uplo, &n, A, &lda, ipiv, work, &lwork, info );
201 }
202 //*************************************************************************************************
203 
204 
205 //*************************************************************************************************
252 inline void sytrf( char uplo, int n, complex<float>* A, int lda, int* ipiv,
253  complex<float>* work, int lwork, int* info )
254 {
255  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
256 
257  csytrf_( &uplo, &n, reinterpret_cast<float*>( A ), &lda, ipiv,
258  reinterpret_cast<float*>( work ), &lwork, info );
259 }
260 //*************************************************************************************************
261 
262 
263 //*************************************************************************************************
310 inline void sytrf( char uplo, int n, complex<double>* A, int lda, int* ipiv,
311  complex<double>* work, int lwork, int* info )
312 {
313  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
314 
315  zsytrf_( &uplo, &n, reinterpret_cast<double*>( A ), &lda, ipiv,
316  reinterpret_cast<double*>( work ), &lwork, info );
317 }
318 //*************************************************************************************************
319 
320 } // namespace blaze
321 
322 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void sytrf(char uplo, int n, float *A, int lda, int *ipiv, float *work, int lwork, int *info)
LAPACK kernel for the decomposition of the given dense symmetric indefinite single precision column-m...
Definition: sytrf.h:142
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