Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
fwdsolver_zslu.h
1 // -*-C++-*-
2 // ==========================================================================
3 // Interface to SuperLU solver (doublecomplex version)
4 // ==========================================================================
5 
6 #ifndef __FWDSOLVER_ZSLU_H
7 #define __FWDSOLVER_ZSLU_H
8 
9 #include "fwdsolver.h"
10 
11 class ZSuperLU_engine;
12 
13 class STOASTLIB ZSuperLU {
14 public:
15  ZSuperLU ();
16  ~ZSuperLU ();
17  void Reset (const CCompRowMatrix *F);
18  void CalcField (const CVector &qvec, CVector &phi,
19  IterativeSolverResult *res) const;
20  void CalcFields (const CCompRowMatrix &qvec, CVector *phi,
21  IterativeSolverResult *res) const;
22 
23 private:
24  const CCompRowMatrix *A;
25  ZSuperLU_engine *engine;
26 };
27 
28 #endif // !__FWDSOLVER_ZSLU_H
Compressed-row sparse matrix class.
Definition: cdmatrix.h:27
Definition: fwdsolver_zslu.h:13
Definition: matrix.h:34