29 #ifndef AMESOS_CSPARSE_H
30 #define AMESOS_CSPARSE_H
31 #ifdef HAVE_AMESOS_CSPARSE
143 return(Matrix_->RowMatrixRowMap());
153 return(*(SerialMap_.get()));
158 return(*(SerialMatrix_.get()));
163 return(*(SerialCrsMatrix_.get()));
168 return(*(Importer_.get()));
171 int ConvertToSerial();
172 int ConvertToCSparse();
173 int PerformSymbolicFactorization();
174 int PerformNumericFactorization();
193 int MtxConvTime_, MtxRedistTime_, VecRedistTime_;
194 int SymFactTime_, NumFactTime_, SolveTime_;
196 #ifdef HAVE_AMESOS_CSPARSE
216 #endif // AMESOS_CSPARSE_H
int NumSymbolicFact_
Number of symbolic factorization phases.
virtual const Epetra_Comm & Comm() const =0
Returns a pointer to the Epetra_Comm communicator associated with this operator.
Amesos_Control: Container for some control variables.
virtual int Solve()=0
Solves A X = B (or AT x = B)
virtual int NumSolve() const =0
Returns the number of solves performed by this object.
virtual int NumNumericFact() const =0
Returns the number of numeric factorizations performed by this object.
virtual int NumSymbolicFact() const =0
Returns the number of symbolic factorizations performed by this object.
virtual int NumericFactorization()=0
Performs NumericFactorization on the matrix A.
virtual int SymbolicFactorization()=0
Performs SymbolicFactorization on the matrix A.
virtual int SetParameters(Teuchos::ParameterList &ParameterList)=0
Updates internal variables.
int NumNumericFact_
Number of numeric factorization phases.
int NumSolve_
Number of solves.
virtual bool UseTranspose() const =0
Returns the current UseTranspose setting.
virtual void PrintTiming() const =0
Prints timing information about the current solver.
void GetTiming(Teuchos::ParameterList &list) const
Load up the current timing information into the parameter list.
Amesos_Status: Container for some status variables.
virtual int SetUseTranspose(bool UseTranspose)=0
If set true, X will be set to the solution of AT X = B (not A X = B)
Amesos_Time: Container for timing information.
virtual void GetTiming(Teuchos::ParameterList &TimingParameterList) const
Extracts timing information from the current solver and places it in the parameter list...
virtual void PrintStatus() const =0
Prints status information about the current solver.
virtual const Epetra_LinearProblem * GetProblem() const =0
Returns the Epetra_LinearProblem.
bool CheckError(const std::string SolverType, const std::string Descriptor, const Epetra_RowMatrix &A, const Epetra_MultiVector &x, const Epetra_MultiVector &b, const Epetra_MultiVector &x_exact)
virtual bool MatrixShapeOK() const =0
Returns true if the solver can handle this matrix shape.
Amesos_BaseSolver: A pure virtual class for direct solution of real-valued double-precision operators...
Amesos_NoCopiable: Simple class to prevent the usage of copy constructor and operator =...
Amesos_Utils: Collections of basic utilities.