46 #include "Ifpack_ConfigDefs.h"
47 #include "Ifpack_CondestType.h"
49 #include "Ifpack_Preconditioner.h"
50 #include "Epetra_Vector.h"
51 #include "Epetra_CrsMatrix.h"
52 #include "Epetra_Time.h"
53 #include "Teuchos_RefCountPtr.hpp"
55 class Epetra_RowMatrix;
56 class Epetra_SerialComm;
59 class Epetra_MultiVector;
118 return(IsInitialized_);
157 int ApplyInverse(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
159 int Apply(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
170 double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
171 const int MaxIters = 1550,
172 const double Tol = 1e-9,
173 Epetra_RowMatrix* Matrix_in = 0);
189 const Epetra_CrsMatrix&
H()
const {
return(*H_);};
203 int SetUseTranspose(
bool UseTranspose_in) {UseTranspose_ = UseTranspose_in;
return(0);};
221 const Epetra_Comm&
Comm()
const{
return(Comm_);};
224 const char* Label()
const
226 return(Label_.c_str());
229 int SetLabel(
const char* Label_in)
236 virtual ostream&
Print(std::ostream& os)
const;
241 return(NumInitialize_);
253 return(NumApplyInverse_);
259 return(InitializeTime_);
265 return(ComputeTime_);
271 return(ApplyInverseTime_);
283 return(ComputeFlops_);
289 return(ApplyInverseFlops_);
298 return(LevelOfFill_);
322 return(DropTolerance_);
344 const Epetra_RowMatrix& A_;
346 const Epetra_Comm& Comm_;
348 Teuchos::RefCountPtr<Epetra_CrsMatrix> H_;
358 double DropTolerance_;
376 mutable int NumApplyInverse_;
378 double InitializeTime_;
382 mutable double ApplyInverseTime_;
384 double ComputeFlops_;
386 mutable double ApplyInverseFlops_;
388 mutable Epetra_Time Time_;
391 Teuchos::RefCountPtr<Epetra_SerialComm> SerialComm_;
392 Teuchos::RefCountPtr<Epetra_Map> SerialMap_;
double RelaxValue() const
Returns the relaxation value.
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual ostream & Print(std::ostream &os) const
Prints basic information on iostream. This function is used by operator<<.
const Epetra_CrsMatrix & H() const
Returns the address of the D factor associated with this factored matrix.
double LevelOfFill() const
Returns the level-of-fill.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
bool IsInitialized() const
Returns true is the preconditioner has been successfully initialized.
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Ifpack_ICT forward/back solve on a Epetra_MultiVector X in Y...
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
int Initialize()
Initialize L and U with values from user matrix A.
double DropTolerance() const
Returns the drop threshold.
Ifpack_ICT(const Epetra_RowMatrix *A)
Ifpack_ICT constuctor with variable number of indices per row.
Ifpack_ScalingType enumerable type.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
virtual int NumCompute() const
Returns the number of calls to Compute().
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
double Condest() const
Returns the computed condition number estimate, or -1.0 if not computed.
virtual double ComputeTime() const
Returns the time spent in Compute().
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
virtual double ComputeFlops() const
Returns the number of flops in all applications of Compute().
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
Ifpack_ICT: A class for constructing and using an incomplete Cholesky factorization of a given Epetra...
double RelativeThreshold() const
Returns the relative threshold.
bool UseTranspose() const
Returns the current UseTranspose setting.
const Epetra_RowMatrix & Matrix() const
Returns a reference to the matrix to be preconditioned.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
virtual double ApplyInverseFlops() const
Returns the number of flops in all applications of ApplyInverse().
virtual double InitializeTime() const
Returns the time spent in Initialize().
int Compute()
Compute IC factor U using the specified graph, diagonal perturbation thresholds and relaxation parame...
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
double AbsoluteThreshold() const
Returns the absolute threshold.
virtual ~Ifpack_ICT()
Ifpack_ICT Destructor.