50 #include "Epetra_Vector.h"
51 #include "Epetra_CrsMatrix.h"
52 #include "Epetra_Time.h"
53 #include "Teuchos_RefCountPtr.hpp"
171 const int MaxIters = 1550,
172 const double Tol = 1e-9,
183 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
239 virtual std::ostream&
Print(std::ostream& os)
const;
351 Teuchos::RefCountPtr<Epetra_CrsMatrix>
H_;
397 template<
typename int_type>
double RelaxValue() const
Returns the relaxation value.
int NumApplyInverse_
Contains the number of successful call to ApplyInverse().
bool UseTranspose_
If true, use the transpose of the matrix.
int NumCompute_
Contains the number of successful call to Compute().
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual std::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.
long long NumGlobalNonzeros64() const
double ComputeTime_
Contains the time for all successful calls to Compute().
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.
Ifpack_ICT & operator=(const Ifpack_ICT &)
Should not be used.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
double LevelOfFill_
Level of fill.
Epetra_Time Time_
Used for timing purposes.
double ApplyInverseTime_
Contains the time for all successful calls to ApplyInverse().
int SetParameters(Teuchos::ParameterList ¶meterlis)
Set parameters using a Teuchos::ParameterList object.
bool IsInitialized() const
Returns true is the preconditioner has been successfully initialized.
virtual const Epetra_Map & OperatorDomainMap() const =0
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...
double ComputeFlops_
Contains the number of flops for Compute().
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.
Teuchos::RefCountPtr< Epetra_CrsMatrix > H_
Contains the Cholesky factorization.
double ApplyInverseFlops_
Contain sthe number of flops for ApplyInverse().
int SetLabel(const char *Label_in)
int Initialize()
Initialize L and U with values from user matrix A.
double DropTolerance_
During factorization, drop all values below this.
Teuchos::RefCountPtr< Epetra_Map > SerialMap_
bool IsInitialized_
If true, the preconditioner has been successfully initialized.
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Ifpack_CondestType
Ifpack_CondestType: enum to define the type of condition number estimate.
virtual const Epetra_Map & OperatorRangeMap() const =0
long long GlobalNonzeros_
Global number of nonzeros in L and U factors.
std::string Label_
Label of this object.
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().
double Rthresh_
Relative threshold.
double InitializeTime_
Contains the time for all successful calls to Initialize().
virtual int NumCompute() const
Returns the number of calls to Compute().
const char * Label() const
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
int NumInitialize_
Contains the number of successful calls to Initialize().
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().
void Destroy()
Destroys all data associated to the preconditioner.
double Relax_
Relaxation value.
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...
const Epetra_Comm & Comm_
Reference to the communicator.
double RelativeThreshold() const
Returns the relative threshold.
Teuchos::RefCountPtr< Epetra_SerialComm > SerialComm_
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().
Ifpack_ICT(const Ifpack_ICT &rhs)
Should not be used.
double Condest_
Contains the estimate of the condition number, if -1.0 if not computed.
bool IsComputed_
If true, the preconditioner has been successfully computed.
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...
int NumMyRows_
Number of local rows in the matrix.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
const Epetra_RowMatrix & A_
Reference to the matrix to be preconditioned, supposed symmetric.
double AbsoluteThreshold() const
Returns the absolute threshold.
virtual ~Ifpack_ICT()
Ifpack_ICT Destructor.
double Athresh_
Absolute threshold.