Ifpack_Graph_Epetra_RowMatrix Class Reference

Ifpack_Graph_Epetra_RowMatrix: a class to define Ifpack_Graph as a light-weight conversion of Epetra_RowMatrix's. More...

#include <Ifpack_Graph_Epetra_RowMatrix.h>

Inheritance diagram for Ifpack_Graph_Epetra_RowMatrix:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Ifpack_Graph_Epetra_RowMatrix (const Teuchos::RefCountPtr< const Epetra_RowMatrix > &RowMatrix)
 Constructor.
virtual ~Ifpack_Graph_Epetra_RowMatrix ()
 Destructor.
int NumMyRows () const
 Returns the number of local rows.
int NumMyCols () const
 Returns the number of local columns.
int NumGlobalRows () const
 Returns the number of global rows.
int NumGlobalCols () const
 Returns the number of global columns.
int MaxMyNumEntries () const
 Returns the maximun number of entries for row.
int NumMyNonzeros () const
 Returns the number of local nonzero entries.
bool Filled () const
 Returns true is graph is filled.
int GRID (int) const
 Returns the global row ID of input local row.
int GCID (int) const
 Returns the global column ID of input local column.
int LRID (int) const
 Returns the local row ID of input global row.
int LCID (int) const
 Returns the local column ID of input global column.
int ExtractMyRowCopy (int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
 Extracts a copy of input local row.
const Epetra_CommComm () const
 Returns the communicator object of the graph.
ostream & Print (std::ostream &os) const
 Prints basic information abobut the graph object.

Private Attributes

int NumMyRows_
 Number of local rows.
int NumMyCols_
 Number of local columns.
int NumGlobalRows_
 Number of global rows.
int NumGlobalCols_
 Number of global columns.
int MaxNumIndices_
 Maximum number of indices per row.
Teuchos::RefCountPtr< const
Epetra_RowMatrix
RowMatrix_
 Pointer to the wrapped Epetra_CrsGraph.
std::vector< double > Values_
 Vectors that can be used in calls to ExtractMyRowView of the Row matrix.

Detailed Description

Ifpack_Graph_Epetra_RowMatrix: a class to define Ifpack_Graph as a light-weight conversion of Epetra_RowMatrix's.

Class Ifpack_Graph_Epetra_RowMatrix enables the construction of an Ifpack_Graph based on the input Epetra_RowMatrix. Note that data are not copied to this object; instead, wrappers are furnished.

Author:
Marzio Sala, SNL 9214
Date:
Set-04.

Definition at line 51 of file Ifpack_Graph_Epetra_RowMatrix.h.


Constructor & Destructor Documentation

Ifpack_Graph_Epetra_RowMatrix::Ifpack_Graph_Epetra_RowMatrix ( const Teuchos::RefCountPtr< const Epetra_RowMatrix > &  RowMatrix  ) 

Constructor.

Definition at line 38 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

virtual Ifpack_Graph_Epetra_RowMatrix::~Ifpack_Graph_Epetra_RowMatrix (  )  [inline, virtual]

Destructor.

Definition at line 59 of file Ifpack_Graph_Epetra_RowMatrix.h.


Member Function Documentation

int Ifpack_Graph_Epetra_RowMatrix::NumMyRows (  )  const [inline, virtual]

Returns the number of local rows.

Implements Ifpack_Graph.

Definition at line 62 of file Ifpack_Graph_Epetra_RowMatrix.h.

int Ifpack_Graph_Epetra_RowMatrix::NumMyCols (  )  const [inline, virtual]

Returns the number of local columns.

Implements Ifpack_Graph.

Definition at line 68 of file Ifpack_Graph_Epetra_RowMatrix.h.

int Ifpack_Graph_Epetra_RowMatrix::NumGlobalRows (  )  const [inline, virtual]

Returns the number of global rows.

Implements Ifpack_Graph.

Definition at line 74 of file Ifpack_Graph_Epetra_RowMatrix.h.

int Ifpack_Graph_Epetra_RowMatrix::NumGlobalCols (  )  const [inline, virtual]

Returns the number of global columns.

Implements Ifpack_Graph.

Definition at line 80 of file Ifpack_Graph_Epetra_RowMatrix.h.

int Ifpack_Graph_Epetra_RowMatrix::MaxMyNumEntries (  )  const [inline, virtual]

Returns the maximun number of entries for row.

Implements Ifpack_Graph.

Definition at line 86 of file Ifpack_Graph_Epetra_RowMatrix.h.

int Ifpack_Graph_Epetra_RowMatrix::NumMyNonzeros (  )  const [virtual]

Returns the number of local nonzero entries.

Implements Ifpack_Graph.

Definition at line 97 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

bool Ifpack_Graph_Epetra_RowMatrix::Filled (  )  const [virtual]

Returns true is graph is filled.

Implements Ifpack_Graph.

Definition at line 57 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

int Ifpack_Graph_Epetra_RowMatrix::GRID ( int  LRID_in  )  const [virtual]

Returns the global row ID of input local row.

Implements Ifpack_Graph.

Definition at line 63 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

int Ifpack_Graph_Epetra_RowMatrix::GCID ( int  LCID_in  )  const [virtual]

Returns the global column ID of input local column.

Implements Ifpack_Graph.

Definition at line 69 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

int Ifpack_Graph_Epetra_RowMatrix::LRID ( int  GRID_in  )  const [virtual]

Returns the local row ID of input global row.

Implements Ifpack_Graph.

Definition at line 75 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

int Ifpack_Graph_Epetra_RowMatrix::LCID ( int  GCID_in  )  const [virtual]

Returns the local column ID of input global column.

Implements Ifpack_Graph.

Definition at line 81 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

int Ifpack_Graph_Epetra_RowMatrix::ExtractMyRowCopy ( int  GlobalRow,
int  LenOfIndices,
int &  NumIndices,
int *  Indices 
) const [virtual]

Extracts a copy of input local row.

Implements Ifpack_Graph.

Definition at line 88 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

const Epetra_Comm & Ifpack_Graph_Epetra_RowMatrix::Comm (  )  const [virtual]

Returns the communicator object of the graph.

Implements Ifpack_Graph.

Definition at line 51 of file Ifpack_Graph_Epetra_RowMatrix.cpp.

ostream & Ifpack_Graph_Epetra_RowMatrix::Print ( std::ostream &  os  )  const [virtual]

Prints basic information abobut the graph object.

Implements Ifpack_Graph.

Definition at line 103 of file Ifpack_Graph_Epetra_RowMatrix.cpp.


Member Data Documentation

Number of local rows.

Definition at line 122 of file Ifpack_Graph_Epetra_RowMatrix.h.

Number of local columns.

Definition at line 124 of file Ifpack_Graph_Epetra_RowMatrix.h.

Number of global rows.

Definition at line 126 of file Ifpack_Graph_Epetra_RowMatrix.h.

Number of global columns.

Definition at line 128 of file Ifpack_Graph_Epetra_RowMatrix.h.

Maximum number of indices per row.

Definition at line 130 of file Ifpack_Graph_Epetra_RowMatrix.h.

Pointer to the wrapped Epetra_CrsGraph.

Definition at line 132 of file Ifpack_Graph_Epetra_RowMatrix.h.

std::vector<double> Ifpack_Graph_Epetra_RowMatrix::Values_ [mutable, private]

Vectors that can be used in calls to ExtractMyRowView of the Row matrix.

Definition at line 134 of file Ifpack_Graph_Epetra_RowMatrix.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:05:40 2011 for Ifpack Package Browser (Single Doxygen Collection) by  doxygen 1.6.3