1 #ifndef IFPACK_ROWMATRIX_H 2 #define IFPACK_ROWMATRIX_H 6 #include "Epetra_MpiComm.h" 8 #include "Epetra_SerialComm.h" 10 #include "Epetra_RowMatrix.h" 12 class Epetra_MultiVector;
14 class Epetra_BlockMap;
84 virtual int ExtractMyRowCopy(
int MyRow,
int Length,
int & NumEntries,
double *Values,
int * Indices)
const 116 virtual int Multiply(
bool TransA,
const Epetra_MultiVector& X, Epetra_MultiVector& Y)
const 122 virtual int Solve(
bool Upper,
bool Trans,
bool UnitDiagonal,
const Epetra_MultiVector& X,
123 Epetra_MultiVector& Y)
const 125 return(
Matrix().
Solve(Upper,Trans,UnitDiagonal,X,Y));
128 virtual int Apply(
const Epetra_MultiVector& X,
129 Epetra_MultiVector& Y)
const 135 Epetra_MultiVector& Y)
const 192 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 269 return(
Matrix_->LowerTriangular());
275 return(
Matrix_->UpperTriangular());
299 int SetOwnership(
bool ownership)
302 return(
Matrix().SetOwnership(ownership));
325 const Epetra_Comm &
Comm()
const 343 const Epetra_BlockMap&
Map()
const virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual long long NumGlobalCols64() const
Returns the number of global matrix columns.
virtual const Epetra_Map & RowMatrixRowMap() const
Returns the Epetra_Map object associated with the rows of this matrix.
Epetra_RowMatrix & Matrix()
virtual bool LowerTriangular() const
If matrix is lower triangular in local index space, this query returns true, otherwise it returns fal...
virtual int ExtractMyRowCopy(int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const
Returns a copy of the specified local row in user-provided arrays.
const Epetra_BlockMap & Map() const
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual const Epetra_Import * RowMatrixImporter() const
Returns the Epetra_Import object that contains the import operations for distributed operations...
virtual int LeftScale(const Epetra_Vector &x)
Scales the Epetra_RowMatrix on the left with a Epetra_Vector x (NOT IMPLEMENTED). ...
virtual int NumMyRows() const
Returns the number of matrix rows owned by the calling processor.
virtual int InvColSums(Epetra_Vector &x) const
Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x (NO...
virtual int MaxNumEntries() const
Returns the maximum of NumMyRowEntries() over all rows.
Amesos_TestRowMatrix: a class to test Epetra_RowMatrix based codes.
virtual double NormInf() const
Returns the infinity norm of the global matrix.
virtual int ExtractDiagonalCopy(Epetra_Vector &Diagonal) const
Returns a copy of the main diagonal in a user-provided vector.
virtual long long NumGlobalDiagonals64() const
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons...
const Epetra_Map & OperatorRangeMap() const
Returns the Epetra_Map object associated with the range of this operator.
virtual int Solve(bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns result of a local-only solve using a triangular Epetra_RowMatrix with Epetra_MultiVectors X a...
bool UseTranspose() const
Returns the current UseTranspose setting.
Epetra_RowMatrix * Matrix_
Pointer to the matrix to be preconditioned.
virtual int NumGlobalRows() const
Returns the number of global matrix rows.
virtual int Multiply(bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y.
virtual long long NumGlobalNonzeros64() const
Returns the number of nonzero entries in the global matrix.
const Epetra_RowMatrix & Matrix() const
virtual int NumGlobalDiagonals() const
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons...
virtual int NumGlobalCols() const
Returns the number of global matrix columns.
virtual ~Amesos_TestRowMatrix()
Destructor.
virtual int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global matrix.
virtual bool UpperTriangular() const
If matrix is upper triangular in local index space, this query returns true, otherwise it returns fal...
virtual const Epetra_Map & RowMatrixColMap() const
Returns the Epetra_Map object associated with the columns of this matrix.
virtual int NumMyRowEntries(int MyRow, int &NumEntries) const
Returns the number of nonzero entries in MyRow.
virtual int RightScale(const Epetra_Vector &x)
Scales the Epetra_RowMatrix on the right with a Epetra_Vector x (NOT IMPLEMENTED).
int SetUseTranspose(bool UseTranspose_in)
Sets use transpose (not implemented).
virtual int InvRowSums(Epetra_Vector &x) const
Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x (NOT I...
virtual int NumMyNonzeros() const
Returns the number of nonzero entries in the calling processor's portion of the matrix.
virtual bool Filled() const
If FillComplete() has been called, this query returns true, otherwise it returns false.
const char * Label() const
virtual int NumMyDiagonals() const
Returns the number of local nonzero diagonal entries, based on global row/column index comparisons...
virtual int NumMyCols() const
Returns the number of matrix columns owned by the calling processor.
virtual double NormOne() const
Returns the one norm of the global matrix.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
Amesos_TestRowMatrix(Epetra_RowMatrix *Matrix_in)
Constructor.
virtual long long NumGlobalRows64() const
Returns the number of global matrix rows.
bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.