sytrs.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_LAPACK_CLAPACK_SYTRS_H_
36 #define _BLAZE_MATH_LAPACK_CLAPACK_SYTRS_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 ssytrs_( char* uplo, int* n, int* nrhs, float* A, int* lda, int* ipiv, float* B, int* ldb, int* info );
58 void dsytrs_( char* uplo, int* n, int* nrhs, double* A, int* lda, int* ipiv, double* B, int* ldb, int* info );
59 void csytrs_( char* uplo, int* n, int* nrhs, float* A, int* lda, int* ipiv, float* B, int* ldb, int* info );
60 void zsytrs_( char* uplo, int* n, int* nrhs, double* A, int* lda, int* ipiv, double* B, int* ldb, int* info );
61 
62 }
64 //*************************************************************************************************
65 
66 
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // LAPACK LDLT-BASED SUBSTITUTION FUNCTIONS (SYTRS)
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
80 inline void sytrs( char uplo, int n, int nrhs, const float* A, int lda, const int* ipiv,
81  float* B, int ldb, int* info );
82 
83 inline void sytrs( char uplo, int n, int nrhs, const double* A, int lda, const int* ipiv,
84  double* B, int ldb, int* info );
85 
86 inline void sytrs( char uplo, int n, int nrhs, const complex<float>* A, int lda, const int* ipiv,
87  complex<float>* B, int ldb, int* info );
88 
89 inline void sytrs( char uplo, int n, int nrhs, const complex<double>* A, int lda, const int* ipiv,
90  complex<double>* B, int ldb, int* info );
92 //*************************************************************************************************
93 
94 
95 //*************************************************************************************************
128 inline void sytrs( char uplo, int n, int nrhs, const float* A, int lda, const int* ipiv,
129  float* B, int ldb, int* info )
130 {
131  ssytrs_( &uplo, &n, &nrhs, const_cast<float*>( A ), &lda,
132  const_cast<int*>( ipiv ), B, &ldb, info );
133 }
134 //*************************************************************************************************
135 
136 
137 //*************************************************************************************************
170 inline void sytrs( char uplo, int n, int nrhs, const double* A, int lda, const int* ipiv,
171  double* B, int ldb, int* info )
172 {
173  dsytrs_( &uplo, &n, &nrhs, const_cast<double*>( A ), &lda,
174  const_cast<int*>( ipiv ), B, &ldb, info );
175 }
176 //*************************************************************************************************
177 
178 
179 //*************************************************************************************************
212 inline void sytrs( char uplo, int n, int nrhs, const complex<float>* A, int lda,
213  const int* ipiv, complex<float>* B, int ldb, int* info )
214 {
215  BLAZE_STATIC_ASSERT( sizeof( complex<float> ) == 2UL*sizeof( float ) );
216 
217  csytrs_( &uplo, &n, &nrhs, const_cast<float*>( reinterpret_cast<const float*>( A ) ),
218  &lda, const_cast<int*>( ipiv ), reinterpret_cast<float*>( B ), &ldb, info );
219 }
220 //*************************************************************************************************
221 
222 
223 //*************************************************************************************************
256 inline void sytrs( char uplo, int n, int nrhs, const complex<double>* A, int lda,
257  const int* ipiv, complex<double>* B, int ldb, int* info )
258 {
259  BLAZE_STATIC_ASSERT( sizeof( complex<double> ) == 2UL*sizeof( double ) );
260 
261  zsytrs_( &uplo, &n, &nrhs, const_cast<double*>( reinterpret_cast<const double*>( A ) ),
262  &lda, const_cast<int*>( ipiv ), reinterpret_cast<double*>( B ), &ldb, info );
263 }
264 //*************************************************************************************************
265 
266 } // namespace blaze
267 
268 #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 sytrs(char uplo, int n, int nrhs, const float *A, int lda, const int *ipiv, float *B, int ldb, int *info)
LAPACK kernel for the substitution step of solving a symmetric indefinite single precision linear sys...
Definition: sytrs.h:128
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