Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
Epetra_RowMatrix Class Referenceabstract

Epetra_RowMatrix: A pure virtual class for using real-valued double-precision row matrices. More...

#include <Epetra_RowMatrix.h>

Inheritance diagram for Epetra_RowMatrix:
Inheritance graph
[legend]

Destructor

virtual ~Epetra_RowMatrix ()
 Destructor. More...
 

Matrix data extraction routines

virtual int NumMyRowEntries (int MyRow, int &NumEntries) const =0
 Returns the number of nonzero entries in MyRow. More...
 
virtual int MaxNumEntries () const =0
 Returns the maximum of NumMyRowEntries() over all rows. More...
 
virtual int ExtractMyRowCopy (int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const =0
 Returns a copy of the specified local row in user-provided arrays. More...
 
virtual int ExtractDiagonalCopy (Epetra_Vector &Diagonal) const =0
 Returns a copy of the main diagonal in a user-provided vector. More...
 

Mathematical functions

virtual int Multiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const =0
 Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y. More...
 
virtual int Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const =0
 Returns result of a local-only solve using a triangular Epetra_RowMatrix with Epetra_MultiVectors X and Y. More...
 
virtual int InvRowSums (Epetra_Vector &x) const =0
 Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x. More...
 
virtual int LeftScale (const Epetra_Vector &x)=0
 Scales the Epetra_RowMatrix on the left with a Epetra_Vector x. More...
 
virtual int InvColSums (Epetra_Vector &x) const =0
 Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x. More...
 
virtual int RightScale (const Epetra_Vector &x)=0
 Scales the Epetra_RowMatrix on the right with a Epetra_Vector x. More...
 

Attribute access functions

virtual bool Filled () const =0
 If FillComplete() has been called, this query returns true, otherwise it returns false. More...
 
virtual double NormInf () const =0
 Returns the infinity norm of the global matrix. More...
 
virtual double NormOne () const =0
 Returns the one norm of the global matrix. More...
 
virtual int NumGlobalNonzeros () const =0
 Returns the number of nonzero entries in the global matrix. More...
 
virtual long long NumGlobalNonzeros64 () const =0
 
virtual int NumGlobalRows () const =0
 Returns the number of global matrix rows. More...
 
virtual long long NumGlobalRows64 () const =0
 
virtual int NumGlobalCols () const =0
 Returns the number of global matrix columns. More...
 
virtual long long NumGlobalCols64 () const =0
 
virtual int NumGlobalDiagonals () const =0
 Returns the number of global nonzero diagonal entries, based on global row/column index comparisons. More...
 
virtual long long NumGlobalDiagonals64 () const =0
 
virtual int NumMyNonzeros () const =0
 Returns the number of nonzero entries in the calling processor's portion of the matrix. More...
 
virtual int NumMyRows () const =0
 Returns the number of matrix rows owned by the calling processor. More...
 
virtual int NumMyCols () const =0
 Returns the number of matrix columns owned by the calling processor. More...
 
virtual int NumMyDiagonals () const =0
 Returns the number of local nonzero diagonal entries, based on global row/column index comparisons. More...
 
virtual bool LowerTriangular () const =0
 If matrix is lower triangular in local index space, this query returns true, otherwise it returns false. More...
 
virtual bool UpperTriangular () const =0
 If matrix is upper triangular in local index space, this query returns true, otherwise it returns false. More...
 
virtual const Epetra_MapRowMatrixRowMap () const =0
 Returns the Epetra_Map object associated with the rows of this matrix. More...
 
virtual const Epetra_MapRowMatrixColMap () const =0
 Returns the Epetra_Map object associated with the columns of this matrix. More...
 
virtual const Epetra_ImportRowMatrixImporter () const =0
 Returns the Epetra_Import object that contains the import operations for distributed operations. More...
 

Detailed Description

Epetra_RowMatrix: A pure virtual class for using real-valued double-precision row matrices.

The Epetra_RowMatrix class is a pure virtual class (specifies interface only) that enable the use of real-valued double-precision sparse matrices where matrix entries are intended for row access. It is currently implemented by both the Epetra_CrsMatrix and Epetra_VbrMatrix classes.

Definition at line 76 of file Epetra_RowMatrix.h.

Constructor & Destructor Documentation

virtual Epetra_RowMatrix::~Epetra_RowMatrix ( )
inlinevirtual

Destructor.

Definition at line 82 of file Epetra_RowMatrix.h.

Member Function Documentation

virtual int Epetra_RowMatrix::NumMyRowEntries ( int  MyRow,
int &  NumEntries 
) const
pure virtual

Returns the number of nonzero entries in MyRow.

Parameters
InMyRow - Local row.
OutNumEntries - Number of nonzero values present.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_BasicRowMatrix, Epetra_VbrRowMatrix, and Epetra_JadMatrix.

virtual int Epetra_RowMatrix::MaxNumEntries ( ) const
pure virtual

Returns the maximum of NumMyRowEntries() over all rows.

Implemented in Epetra_VbrMatrix, Epetra_CrsMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::ExtractMyRowCopy ( int  MyRow,
int  Length,
int &  NumEntries,
double *  Values,
int *  Indices 
) const
pure virtual

Returns a copy of the specified local row in user-provided arrays.

Parameters
InMyRow - Local row to extract.
InLength - Length of Values and Indices.
OutNumEntries - Number of nonzero entries extracted.
OutValues - Extracted values for this row.
OutIndices - Extracted local column indices for the corresponding values.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_VbrMatrix, Epetra_CrsMatrix, Epetra_BasicRowMatrix, Epetra_VbrRowMatrix, and Epetra_JadMatrix.

virtual int Epetra_RowMatrix::ExtractDiagonalCopy ( Epetra_Vector Diagonal) const
pure virtual

Returns a copy of the main diagonal in a user-provided vector.

Parameters
OutDiagonal - Extracted main diagonal.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_BasicRowMatrix, and Epetra_OskiMatrix.

virtual int Epetra_RowMatrix::Multiply ( bool  TransA,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
pure virtual

Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y.

Parameters
InTransA -If true, multiply by the transpose of matrix, otherwise just use matrix.
InX - A Epetra_MultiVector of dimension NumVectors to multiply with matrix.
OutY -A Epetra_MultiVector of dimension NumVectorscontaining result.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_OskiMatrix, Epetra_BasicRowMatrix, Epetra_VbrRowMatrix, and Epetra_JadMatrix.

virtual int Epetra_RowMatrix::Solve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const
pure virtual

Returns result of a local-only solve using a triangular Epetra_RowMatrix with Epetra_MultiVectors X and Y.

This method will perform a triangular solve independently on each processor of the parallel machine.
No communication is performed.
Parameters
InUpper -If true, solve Ux = y, otherwise solve Lx = y.
InTrans -If true, solve transpose problem.
InUnitDiagonal -If true, assume diagonal is unit (whether it's stored or not).
InX - A Epetra_MultiVector of dimension NumVectors to solve for.
OutY -A Epetra_MultiVector of dimension NumVectors containing result.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_OskiMatrix, Epetra_BasicRowMatrix, Epetra_VbrRowMatrix, and Epetra_JadMatrix.

virtual int Epetra_RowMatrix::InvRowSums ( Epetra_Vector x) const
pure virtual

Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x.

  The vector x will return such that x[i] will contain the inverse of sum of the absolute values of the
  \e this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the global row number of A
  and j denotes the global column number of A.  Using the resulting vector from this function as input to LeftScale()

will make the infinity norm of the resulting matrix exactly 1.

Parameters
Outx -A Epetra_Vector containing the row sums of the this matrix.
Warning
It is assumed that the distribution of x is the same as the rows of this.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::LeftScale ( const Epetra_Vector x)
pure virtual

Scales the Epetra_RowMatrix on the left with a Epetra_Vector x.

The \e this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the row number of A
and j denotes the column number of A.
Parameters
Inx -A Epetra_Vector to solve for.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_BasicRowMatrix, and Epetra_VbrRowMatrix.

virtual int Epetra_RowMatrix::InvColSums ( Epetra_Vector x) const
pure virtual

Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x.

  The vector x will return such that x[j] will contain the inverse of sum of the absolute values of the
  \e this matrix will be sca such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A
  and j denotes the global column number of A.  Using the resulting vector from this function as input to

RighttScale() will make the one norm of the resulting matrix exactly 1.

Parameters
Outx -A Epetra_Vector containing the column sums of the this matrix.
Warning
It is assumed that the distribution of x is the same as the rows of this.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::RightScale ( const Epetra_Vector x)
pure virtual

Scales the Epetra_RowMatrix on the right with a Epetra_Vector x.

The \e this matrix will be scaled such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A
and j denotes the global column number of A.
Parameters
Inx -The Epetra_Vector used for scaling this.
Returns
Integer error code, set to 0 if successful.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, Epetra_BasicRowMatrix, and Epetra_VbrRowMatrix.

virtual bool Epetra_RowMatrix::Filled ( ) const
pure virtual

If FillComplete() has been called, this query returns true, otherwise it returns false.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual double Epetra_RowMatrix::NormInf ( ) const
pure virtual

Returns the infinity norm of the global matrix.

Implements Epetra_Operator.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual double Epetra_RowMatrix::NormOne ( ) const
pure virtual

Returns the one norm of the global matrix.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::NumGlobalNonzeros ( ) const
pure virtual

Returns the number of nonzero entries in the global matrix.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual long long Epetra_RowMatrix::NumGlobalNonzeros64 ( ) const
pure virtual
virtual int Epetra_RowMatrix::NumGlobalRows ( ) const
pure virtual

Returns the number of global matrix rows.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual long long Epetra_RowMatrix::NumGlobalRows64 ( ) const
pure virtual
virtual int Epetra_RowMatrix::NumGlobalCols ( ) const
pure virtual

Returns the number of global matrix columns.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual long long Epetra_RowMatrix::NumGlobalCols64 ( ) const
pure virtual
virtual int Epetra_RowMatrix::NumGlobalDiagonals ( ) const
pure virtual

Returns the number of global nonzero diagonal entries, based on global row/column index comparisons.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual long long Epetra_RowMatrix::NumGlobalDiagonals64 ( ) const
pure virtual
virtual int Epetra_RowMatrix::NumMyNonzeros ( ) const
pure virtual

Returns the number of nonzero entries in the calling processor's portion of the matrix.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::NumMyRows ( ) const
pure virtual

Returns the number of matrix rows owned by the calling processor.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::NumMyCols ( ) const
pure virtual

Returns the number of matrix columns owned by the calling processor.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual int Epetra_RowMatrix::NumMyDiagonals ( ) const
pure virtual

Returns the number of local nonzero diagonal entries, based on global row/column index comparisons.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual bool Epetra_RowMatrix::LowerTriangular ( ) const
pure virtual

If matrix is lower triangular in local index space, this query returns true, otherwise it returns false.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual bool Epetra_RowMatrix::UpperTriangular ( ) const
pure virtual

If matrix is upper triangular in local index space, this query returns true, otherwise it returns false.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual const Epetra_Map& Epetra_RowMatrix::RowMatrixRowMap ( ) const
pure virtual

Returns the Epetra_Map object associated with the rows of this matrix.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual const Epetra_Map& Epetra_RowMatrix::RowMatrixColMap ( ) const
pure virtual

Returns the Epetra_Map object associated with the columns of this matrix.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.

virtual const Epetra_Import* Epetra_RowMatrix::RowMatrixImporter ( ) const
pure virtual

Returns the Epetra_Import object that contains the import operations for distributed operations.

Implemented in Epetra_CrsMatrix, Epetra_VbrMatrix, and Epetra_BasicRowMatrix.


The documentation for this class was generated from the following file: