Amesos_EpetraBaseSolver Class Reference

Amesos_EpetraBaseSolver: A generic implementation of Amesos_BaseSolver for Epetra Matrices. More...

#include <Amesos_EpetraBaseSolver.h>

Inheritance diagram for Amesos_EpetraBaseSolver:

[legend]
Collaboration diagram for Amesos_EpetraBaseSolver:
[legend]
List of all members.

Public Member Functions

 Amesos_EpetraBaseSolver (const Epetra_LinearProblem &Problem)
int SetInterface (Epetra_RowMatrix *Mat)
int GetRow (int BlockRow, int &NumIndices, int *&RowIndices, int *&ColIndices, double *&Values)
int MatrixType () const
int NumMyRows () const
int NumMyBlockRows () const
int NumGlobalRows () const
int NumMyNonzeros () const
int NumGlobalNonzeros () const
int MaxNumEntries () const
int MyGlobalElements (int i) const
int NumPDEEqns () const
int * GetRowIndices () const
int * GetColIndices () const
double * GetValues () const
Epetra_RowMatrixRowA () const
Epetra_CrsMatrixCrsA () const
Epetra_VbrMatrixVbrA () const
int IndexBase () const
const Epetra_LinearProblemGetProblem () const
 Get a pointer to the Problem.
const Epetra_CommComm () const
 Returns a pointer to the Epetra_Comm communicator associated with this matrix.
bool IsLocal () const
int SetIsLocal (const bool flag)
int SetMatrixProperty (const int property)
 Set the matrix property (unsymmetric, SPD, general symmetric).
int MatrixProperty () const
 Returns the matrix property.
Epetra_RowMatrixGetMatrix () const
Epetra_MultiVectorGetLHS () const
Epetra_MultiVectorGetRHS () const
int UpdateLHS ()
bool MatrixShapeOK () const
 Returns true if the solver can handle this matrix shape.

Detailed Description

Amesos_EpetraBaseSolver: A generic implementation of Amesos_BaseSolver for Epetra Matrices.

Amesos_EpetraBaseSolver is a concrete implementation of Amesos_BaseSolver for Epetra_RowMatrix, Epetra_Crsmatrix, and Epetra_VbrMatrix. The class furnishes a GetRow function, which operates in Copy mode for Epetra_RowMatrix, and in View mode (hence faster) for Epetra_CrsMatrix and Epetra_VbrMatrix.


Member Function Documentation

bool Amesos_EpetraBaseSolver::MatrixShapeOK  )  const [virtual]
 

Returns true if the solver can handle this matrix shape.

Returns true if the matrix shape is one that the underlying sparse direct solver can handle. Classes that work only on square matrices should return false for rectangular matrices. Classes that work only on symmetric matrices whould return false for non-symmetric matrices.

Implements Amesos_BaseSolver.

int Amesos_EpetraBaseSolver::SetMatrixProperty const int  property  )  [inline]
 

Set the matrix property (unsymmetric, SPD, general symmetric).

Set the matrix property as follows:

  • 0 : general unsymmetric matrix;
  • 1 : SPD;
  • 2 : general symmetric matrix.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:42:57 2008 for Amesos by doxygen 1.3.9.1