sytri.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_SYTRI_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_SYTRI_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 ssytri_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* info );
58 void dsytri_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* info );
59 void csytri_( char* uplo, int* n, float* A, int* lda, int* ipiv, float* work, int* info );
60 void zsytri_( char* uplo, int* n, double* A, int* lda, int* ipiv, double* work, int* info );
61 
62 }
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK LDLT-BASED INVERSION FUNCTIONS (SYTRI)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void sytri( char uplo, int n, float* A, int lda, const int* ipiv, float* work, int* info );
81 
82 inline void sytri( char uplo, int n, double* A, int lda, const int* ipiv, double* work, int* info );
83 
84 inline void sytri( char uplo, int n, complex<float>* A, int lda,
85  const int* ipiv, complex<float>* work, int* info );
86 
87 inline void sytri( char uplo, int n, complex<double>* A, int lda,
88  const int* ipiv, complex<double>* work, int* info );
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
124 inline void sytri( char uplo, int n, float* A, int lda, const int* ipiv, float* work, int* info )
125 {
126  ssytri_( &uplo, &n, A, &lda, const_cast<int*>( ipiv ), work, info );
127 }
128 //*************************************************************************************************
129 
130 
131 //*************************************************************************************************
162 inline void sytri( char uplo, int n, double* A, int lda, const int* ipiv, double* work, int* info )
163 {
164  dsytri_( &uplo, &n, A, &lda, const_cast<int*>( ipiv ), work, info );
165 }
166 //*************************************************************************************************
167 
168 
169 //*************************************************************************************************
200 inline void sytri( char uplo, int n, complex<float>* A, int lda,
201  const int* ipiv, complex<float>* work, int* info )
202 {
203  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
204 
205  csytri_( &uplo, &n, reinterpret_cast<float*>( A ), &lda,
206  const_cast<int*>( ipiv ), reinterpret_cast<float*>( work ), info );
207 }
208 //*************************************************************************************************
209 
210 
211 //*************************************************************************************************
242 inline void sytri( char uplo, int n, complex<double>* A, int lda,
243  const int* ipiv, complex<double>* work, int* info )
244 {
245  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
246 
247  zsytri_( &uplo, &n, reinterpret_cast<double*>( A ), &lda,
248  const_cast<int*>( ipiv ), reinterpret_cast<double*>( work ), info );
249 }
250 //*************************************************************************************************
251 
252 } // namespace blaze
253 
254 #endif
Log level for high-level information.
Definition: LogLevel.h:80
void sytri(char uplo, int n, float *A, int lda, const int *ipiv, float *work, int *info)
LAPACK kernel for the inversion of the given dense symmetric indefinite single precision column-major...
Definition: sytri.h:124
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