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"
12class Epetra_MultiVector;
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());
300 int SetOwnership(
bool ownership)
302 return(
Matrix().SetOwnership(ownership));
325 const Epetra_Comm &
Comm()
const
343 const Epetra_BlockMap&
Map()
const
Amesos_TestRowMatrix: a class to test Epetra_RowMatrix based codes.
virtual const Epetra_Map & RowMatrixColMap() const
Returns the Epetra_Map object associated with the columns of this matrix.
Epetra_RowMatrix * Matrix_
Pointer to the matrix to be preconditioned.
virtual double NormOne() const
Returns the one norm of the global matrix.
virtual int NumMyNonzeros() const
Returns the number of nonzero entries in the calling processor's portion of the matrix.
Epetra_RowMatrix & Matrix()
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 int NumMyRows() const
Returns the number of matrix rows owned by the calling processor.
Amesos_TestRowMatrix(Epetra_RowMatrix *Matrix_in)
Constructor.
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 NumGlobalRows() const
Returns the number of global matrix rows.
virtual int MaxNumEntries() const
Returns the maximum of NumMyRowEntries() over all rows.
virtual long long NumGlobalRows64() const
Returns the number of global matrix rows.
virtual int NumGlobalCols() const
Returns the number of global matrix columns.
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...
virtual int RightScale(const Epetra_Vector &x)
Scales the Epetra_RowMatrix on the right with a Epetra_Vector x (NOT IMPLEMENTED).
virtual int NumMyRowEntries(int MyRow, int &NumEntries) const
Returns the number of nonzero entries in MyRow.
virtual bool Filled() const
If FillComplete() has been called, this query returns true, otherwise it returns false.
virtual double NormInf() const
Returns the infinity norm of the global matrix.
virtual bool LowerTriangular() const
If matrix is lower triangular in local index space, this query returns true, otherwise it returns fal...
int SetUseTranspose(bool UseTranspose_in)
Sets use transpose (not implemented).
virtual long long NumGlobalNonzeros64() const
Returns the number of nonzero entries in the global matrix.
virtual int NumMyCols() const
Returns the number of matrix columns owned by the calling processor.
virtual int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual bool UpperTriangular() const
If matrix is upper triangular in local index space, this query returns true, otherwise it returns fal...
bool HasNormInf() const
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
const Epetra_Map & OperatorDomainMap() const
Returns the Epetra_Map object associated with the domain of this operator.
virtual int NumGlobalDiagonals() const
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons.
const char * Label() const
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 long long NumGlobalDiagonals64() const
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons.
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.
virtual int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global matrix.
virtual ~Amesos_TestRowMatrix()
Destructor.
virtual int NumMyDiagonals() const
Returns the number of local nonzero diagonal entries, based on global row/column index comparisons.
bool UseTranspose() const
Returns the current UseTranspose setting.
virtual int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
const Epetra_BlockMap & Map() const
virtual const Epetra_Map & RowMatrixRowMap() const
Returns the Epetra_Map object associated with the rows of this matrix.
virtual int ExtractDiagonalCopy(Epetra_Vector &Diagonal) const
Returns a copy of the main diagonal in a user-provided vector.
virtual long long NumGlobalCols64() const
Returns the number of global matrix columns.
virtual const Epetra_Import * RowMatrixImporter() const
Returns the Epetra_Import object that contains the import operations for distributed operations.
const Epetra_RowMatrix & Matrix() const
const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
virtual int LeftScale(const Epetra_Vector &x)
Scales the Epetra_RowMatrix on the left with a Epetra_Vector x (NOT IMPLEMENTED).