TBCI Numerical high perf. C++ Library  2.8.0
superlu_stdcplx.h
Go to the documentation of this file.
1 
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
16 
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 
34 inline
36  const Vector< CPLX__ complex<double> >& rhs,
37  colperm_t permc_spec = NATURAL,
38  bool verbose = false, bool symm = false)
39 {
40  TVector< CPLX__ complex<double> > x(rhs.size());
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 */
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.
colperm_t
get column permutation vector perm_c[], according to permc_spec: permc_spec = NATURAL(0): use the nat...
#define NAMESPACE_TBCI
Definition: basics.h:317
const Vector< T > const Vector< T > & x
Definition: LM_fit.h:97
colperm_t
get column permutation vector perm_c[], according to permc_spec: permc_spec = NATURAL(0): use the nat...
Definition: superlu.h:20
exception class: Use MatErr from matrix.h
Definition: cscmatrix.h:49
Definition: bvector.h:54
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition: bvector.h:52
#define NAMESPACE_END
Definition: basics.h:323
Definition: f2c.h:33