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 //*************************************************************************************************
143 inline void sytrf( char uplo, int n, float* A, int lda, int* ipiv,
144  float* work, int lwork, int* info )
145 {
146  ssytrf_( &uplo, &n, A, &lda, ipiv, work, &lwork, info );
147 }
148 //*************************************************************************************************
149 
150 
151 //*************************************************************************************************
199 inline void sytrf( char uplo, int n, double* A, int lda, int* ipiv,
200  double* work, int lwork, int* info )
201 {
202  dsytrf_( &uplo, &n, A, &lda, ipiv, work, &lwork, info );
203 }
204 //*************************************************************************************************
205 
206 
207 //*************************************************************************************************
255 inline void sytrf( char uplo, int n, complex<float>* A, int lda, int* ipiv,
256  complex<float>* work, int lwork, int* info )
257 {
258  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
259 
260  csytrf_( &uplo, &n, reinterpret_cast<float*>( A ), &lda, ipiv,
261  reinterpret_cast<float*>( work ), &lwork, info );
262 }
263 //*************************************************************************************************
264 
265 
266 //*************************************************************************************************
314 inline void sytrf( char uplo, int n, complex<double>* A, int lda, int* ipiv,
315  complex<double>* work, int lwork, int* info )
316 {
317  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
318 
319  zsytrf_( &uplo, &n, reinterpret_cast<double*>( A ), &lda, ipiv,
320  reinterpret_cast<double*>( work ), &lwork, info );
321 }
322 //*************************************************************************************************
323 
324 } // namespace blaze
325 
326 #endif
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:143
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