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 */
const Vector< T > const Vector< T > & x
Definition: LM_fit.h:97
#define NAMESPACE_TBCI
Definition: basics.h:317
F_TMatrix< double > lu_solve(const F_Matrix< double > &A, const F_Matrix< double > &B, int overwriteA=0)
Definition: lapack.cpp:156
colperm_t
get column permutation vector perm_c[], according to permc_spec: permc_spec = NATURAL(0): use the nat...
Definition: superlu.h:20
#define CPLX__
Definition: basics.h:341
exception class: Use MatErr from matrix.h
Definition: cscmatrix.h:49
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition: bvector.h:52
#define NAMESPACE_END
Definition: basics.h:323
Definition: bvector.h:54
Definition: f2c.h:33
Definition: superlu.h:20