TBCI Numerical high perf. C++ Library 2.8.0
superlu_stdcplx.h
Go to the documentation of this file.
1
7
8#ifndef TBCI_SOLVER_SUPERLU_STDCPLX_H
9#define TBCI_SOLVER_SUPERLU_STDCPLX_H
10
11#include "tbci/vector.h"
12#include "tbci/cscmatrix.h"
13#include "tbci/std_cplx.h"
14
15#ifndef COLPERM_T_DECLARED
22#define COLPERM_T_DECLARED
23#endif
24
26
30 const Vector< CPLX__ complex<double> >& rhs,
31 colperm_t permc_spec = NATURAL,
32 bool verbose = false, bool symm = false);
33
34inline
36 const Vector< CPLX__ complex<double> >& rhs,
37 colperm_t permc_spec = NATURAL,
38 bool verbose = false, bool symm = false)
39{
41 const int info = lu_solve(M, (Vector< CPLX__ complex<double> >&)x,
42 rhs, permc_spec, verbose, symm);
43 return x;
44}
45
47
48#endif /* TBCI_SOLVER_SUPERLU_STDCPLX_H */
const Vector< T > const Vector< T > & x
Definition LM_fit.h:97
#define NAMESPACE_END
Definition basics.h:323
#define NAMESPACE_TBCI
Definition basics.h:317
exception class: Use MatErr from matrix.h
Definition cscmatrix.h:66
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition vector.h:73
#define complex
colperm_t
get column permutation vector perm_c[], according to permc_spec: permc_spec = NATURAL(0): use the nat...
Definition superlu.h:20
@ MMD_ATA
Definition superlu.h:20
@ NATURAL
Definition superlu.h:20
@ MY_PERMC
Definition superlu.h:20
@ MMD_AT_PLUS_A
Definition superlu.h:20
@ COLAMD
Definition superlu.h:20
NAMESPACE_TBCI int lu_solve(CSCMatrix< CPLX__ complex< double > > &M, Vector< CPLX__ complex< double > > &x, const Vector< CPLX__ complex< double > > &rhs, colperm_t permc_spec=NATURAL, bool verbose=false, bool symm=false)
SuperLU solver wrapper for std::complex numbers.