29 #ifndef AMESOS_CSPARSE_H
30 #define AMESOS_CSPARSE_H
32 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
34 #warning "The Amesos package is deprecated"
37 #ifdef HAVE_AMESOS_CSPARSE
149 return(Matrix_->RowMatrixRowMap());
159 return(*(SerialMap_.get()));
164 return(*(SerialMatrix_.get()));
169 return(*(SerialCrsMatrix_.get()));
174 return(*(Importer_.get()));
177 int ConvertToSerial();
178 int ConvertToCSparse();
179 int PerformSymbolicFactorization();
180 int PerformNumericFactorization();
199 int MtxConvTime_, MtxRedistTime_, VecRedistTime_;
200 int SymFactTime_, NumFactTime_, SolveTime_;
202 #ifdef HAVE_AMESOS_CSPARSE
222 #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.