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_RowMatrix.h" 53 #include "Epetra_Time.h" 54 #include "Teuchos_RefCountPtr.hpp" 58 class Epetra_MultiVector;
110 int SetParameters(Teuchos::ParameterList& parameterlis);
112 int SetParameter(
const std::string Name,
const int Value)
116 int SetParameter(
const std::string Name,
const double Value)
126 Epetra_RowMatrix& Matrix()
133 return(IsInitialized_);
173 int ApplyInverse(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
175 int Apply(
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const;
186 double Condest(
const Ifpack_CondestType CT = Ifpack_Cheap,
187 const int MaxIters = 1550,
188 const double Tol = 1e-9,
189 Epetra_RowMatrix* Matrix_in = 0);
205 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 208 long long NumGlobalNonzeros64()
const {
return(U().NumGlobalNonzeros64()+D().GlobalLength64());};
213 const Epetra_Vector &
D()
const {
return(*D_);};
216 const Epetra_CrsMatrix &
U()
const {
return(*U_);};
230 int SetUseTranspose(
bool UseTranspose_in) {UseTranspose_ = UseTranspose_in;
return(0);};
248 const Epetra_Comm &
Comm()
const{
return(Comm_);};
251 const char* Label()
const 256 int SetLabel(
const char* Label_in)
258 strcpy(Label_,Label_in);
263 virtual std::ostream& Print(std::ostream& os)
const;
268 return(NumInitialize_);
280 return(NumApplyInverse_);
286 return(InitializeTime_);
292 return(ComputeTime_);
298 return(ApplyInverseTime_);
309 return(ComputeFlops_);
314 return(ApplyInverseFlops_);
320 double LevelOfFill()
const 325 double AbsoluteThreshold()
const 330 double RelativeThreshold()
const 335 double DropTolerance()
const 340 Teuchos::RefCountPtr<Epetra_RowMatrix> A_;
341 const Epetra_Comm & Comm_;
342 Teuchos::RefCountPtr<Epetra_CrsMatrix> U_;
343 Teuchos::RefCountPtr<Epetra_Vector> D_;
365 mutable int NumApplyInverse_;
368 double InitializeTime_;
372 mutable double ApplyInverseTime_;
374 mutable Epetra_Time Time_;
377 double ComputeFlops_;
379 mutable double ApplyInverseFlops_;
const Epetra_Vector & D() const
Returns the address of the D factor associated with this factored matrix.
virtual int NumInitialize() const
Returns the number of calls to Initialize().
bool IsComputed() const
If factor is completed, this query returns true, otherwise it returns false.
bool UseTranspose() const
Returns the current UseTranspose setting.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
bool HasNormInf() const
Returns false because this class cannot compute an Inf-norm.
virtual double ApplyInverseTime() const
Returns the time spent in ApplyInverse().
const Epetra_RowMatrix & Matrix() const
Returns a pointer to the matrix to be preconditioned.
virtual double ComputeTime() const
Returns the time spent in Compute().
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
void SetAbsoluteThreshold(double Athresh)
Set absolute threshold value.
double GetAbsoluteThreshold()
Get absolute threshold value.
Ifpack_ScalingType enumerable type.
Ifpack_Preconditioner: basic class for preconditioning in Ifpack.
const Epetra_CrsMatrix & U() const
Returns the address of the U factor associated with this factored matrix.
virtual double ApplyInverseFlops() const
Returns the number of flops in the application of the preconditioner.
double GetRelativeThreshold()
Get relative threshold value.
bool IsInitialized() const
Returns true if the preconditioner has been successfully initialized, false otherwise.
int SetUseTranspose(bool UseTranspose_in)
If set true, transpose of this operator will be applied.
void SetRelativeThreshold(double Rthresh)
Set relative threshold value.
Ifpack_IC: A class for constructing and using an incomplete Cholesky factorization of a given Epetra_...
double Condest() const
Returns the computed condition number estimate, or -1.0 if not computed.
virtual double InitializeTime() const
Returns the time spent in Initialize().
virtual int NumApplyInverse() const
Returns the number of calls to ApplyInverse().
virtual int NumCompute() const
Returns the number of calls to Compute().
virtual double ComputeFlops() const
Returns the number of flops in the computation phase.
virtual double InitializeFlops() const
Returns the number of flops in the initialization phase.
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
double NormInf() const
Returns 0.0 because this class cannot compute Inf-norm.