IFPACK Development
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Ifpack_Graph_Epetra_CrsGraph Class Reference

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

#include <Ifpack_Graph_Epetra_CrsGraph.h>

Inheritance diagram for Ifpack_Graph_Epetra_CrsGraph:
Inheritance graph
[legend]
Collaboration diagram for Ifpack_Graph_Epetra_CrsGraph:
Collaboration graph
[legend]

Public Member Functions

 Ifpack_Graph_Epetra_CrsGraph (const Teuchos::RefCountPtr< const Epetra_CrsGraph > &CrsGraph)
 Constructor.
 
virtual ~Ifpack_Graph_Epetra_CrsGraph ()
 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.
 
long long NumGlobalRows64 () const
 
int NumGlobalCols () const
 Returns the number of global columns.
 
long long NumGlobalCols64 () const
 
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.
 
long long GRID64 (int) const
 
int GCID (int) const
 Returns the global column ID of input local column.
 
long long GCID64 (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 LRID (long long) const
 Returns the local row ID of input global row.
 
int LCID (long long) 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.
 
virtual std::ostream & Print (std::ostream &os) const
 Prints basic information about the graph object.
 
- Public Member Functions inherited from Ifpack_Graph
virtual ~Ifpack_Graph ()
 Destructor.
 
virtual int NumMyRows () const =0
 Returns the number of local rows.
 
virtual int NumMyCols () const =0
 Returns the number of local columns.
 
virtual int NumGlobalRows () const =0
 Returns the number of global rows.
 
virtual int NumGlobalCols () const =0
 Returns the number of global columns.
 
virtual long long NumGlobalRows64 () const =0
 
virtual long long NumGlobalCols64 () const =0
 
virtual int MaxMyNumEntries () const =0
 Returns the maximun number of entries for row.
 
virtual int NumMyNonzeros () const =0
 Returns the number of local nonzero entries.
 
virtual bool Filled () const =0
 Returns true is graph is filled.
 
virtual int GRID (int) const =0
 Returns the global row ID of input local row.
 
virtual int GCID (int) const =0
 Returns the global column ID of input local column.
 
virtual long long GRID64 (int) const =0
 
virtual long long GCID64 (int) const =0
 Returns the global column ID of input local column.
 
virtual int LRID (int) const =0
 Returns the local row ID of input global row.
 
virtual int LCID (int) const =0
 Returns the local column ID of input global column.
 
virtual int LRID (long long) const =0
 Returns the local row ID of input global row.
 
virtual int LCID (long long) const =0
 Returns the local column ID of input global column.
 
virtual int ExtractMyRowCopy (int MyRow, int LenOfIndices, int &NumIndices, int *Indices) const =0
 Extracts a copy of input local row.
 
virtual const Epetra_CommComm () const =0
 Returns the communicator object of the graph.
 
virtual std::ostream & Print (std::ostream &os) const =0
 Prints basic information about the graph object.
 

Detailed Description

Ifpack_Graph_Epetra_CrsGraph: a class to define Ifpack_Graph as a light-weight conversion of Epetra_CrsGraph's.

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

Date
Set-04.

Definition at line 62 of file Ifpack_Graph_Epetra_CrsGraph.h.

Constructor & Destructor Documentation

◆ Ifpack_Graph_Epetra_CrsGraph()

Ifpack_Graph_Epetra_CrsGraph::Ifpack_Graph_Epetra_CrsGraph ( const Teuchos::RefCountPtr< const Epetra_CrsGraph > &  CrsGraph)

Constructor.

Definition at line 50 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ ~Ifpack_Graph_Epetra_CrsGraph()

virtual Ifpack_Graph_Epetra_CrsGraph::~Ifpack_Graph_Epetra_CrsGraph ( )
inlinevirtual

Destructor.

Definition at line 70 of file Ifpack_Graph_Epetra_CrsGraph.h.

Member Function Documentation

◆ Comm()

const Epetra_Comm & Ifpack_Graph_Epetra_CrsGraph::Comm ( ) const
virtual

Returns the communicator object of the graph.

Implements Ifpack_Graph.

Definition at line 62 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

Referenced by Print().

◆ ExtractMyRowCopy()

int Ifpack_Graph_Epetra_CrsGraph::ExtractMyRowCopy ( int  GlobalRow,
int  LenOfIndices,
int &  NumIndices,
int *  Indices 
) const
virtual

Extracts a copy of input local row.

Implements Ifpack_Graph.

Definition at line 126 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ Filled()

bool Ifpack_Graph_Epetra_CrsGraph::Filled ( ) const
virtual

Returns true is graph is filled.

Implements Ifpack_Graph.

Definition at line 68 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ GCID()

int Ifpack_Graph_Epetra_CrsGraph::GCID ( int  LCID_in) const
virtual

Returns the global column ID of input local column.

Implements Ifpack_Graph.

Definition at line 81 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ GCID64()

long long Ifpack_Graph_Epetra_CrsGraph::GCID64 ( int  ) const
virtual

Returns the global column ID of input local column.

Implements Ifpack_Graph.

Definition at line 93 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ GRID()

int Ifpack_Graph_Epetra_CrsGraph::GRID ( int  LRID_in) const
virtual

Returns the global row ID of input local row.

Implements Ifpack_Graph.

Definition at line 75 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ GRID64()

long long Ifpack_Graph_Epetra_CrsGraph::GRID64 ( int  LRID_in) const
virtual

Implements Ifpack_Graph.

Definition at line 87 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ LCID() [1/2]

int Ifpack_Graph_Epetra_CrsGraph::LCID ( int  GCID_in) const
virtual

Returns the local column ID of input global column.

Implements Ifpack_Graph.

Definition at line 106 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ LCID() [2/2]

int Ifpack_Graph_Epetra_CrsGraph::LCID ( long long  GCID_in) const
virtual

Returns the local column ID of input global column.

Implements Ifpack_Graph.

Definition at line 120 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ LRID() [1/2]

int Ifpack_Graph_Epetra_CrsGraph::LRID ( int  GRID_in) const
virtual

Returns the local row ID of input global row.

Implements Ifpack_Graph.

Definition at line 100 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ LRID() [2/2]

int Ifpack_Graph_Epetra_CrsGraph::LRID ( long long  GRID_in) const
virtual

Returns the local row ID of input global row.

Implements Ifpack_Graph.

Definition at line 114 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ MaxMyNumEntries()

int Ifpack_Graph_Epetra_CrsGraph::MaxMyNumEntries ( ) const
inlinevirtual

Returns the maximun number of entries for row.

Implements Ifpack_Graph.

Definition at line 115 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumGlobalCols()

int Ifpack_Graph_Epetra_CrsGraph::NumGlobalCols ( ) const
inlinevirtual

Returns the number of global columns.

Implements Ifpack_Graph.

Definition at line 101 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumGlobalCols64()

long long Ifpack_Graph_Epetra_CrsGraph::NumGlobalCols64 ( ) const
inlinevirtual

Implements Ifpack_Graph.

Definition at line 109 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumGlobalRows()

int Ifpack_Graph_Epetra_CrsGraph::NumGlobalRows ( ) const
inlinevirtual

Returns the number of global rows.

Implements Ifpack_Graph.

Definition at line 86 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumGlobalRows64()

long long Ifpack_Graph_Epetra_CrsGraph::NumGlobalRows64 ( ) const
inlinevirtual

Implements Ifpack_Graph.

Definition at line 94 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumMyCols()

int Ifpack_Graph_Epetra_CrsGraph::NumMyCols ( ) const
inlinevirtual

Returns the number of local columns.

Implements Ifpack_Graph.

Definition at line 79 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ NumMyNonzeros()

int Ifpack_Graph_Epetra_CrsGraph::NumMyNonzeros ( ) const
virtual

Returns the number of local nonzero entries.

Implements Ifpack_Graph.

Definition at line 135 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

◆ NumMyRows()

int Ifpack_Graph_Epetra_CrsGraph::NumMyRows ( ) const
inlinevirtual

Returns the number of local rows.

Implements Ifpack_Graph.

Definition at line 73 of file Ifpack_Graph_Epetra_CrsGraph.h.

◆ Print()

std::ostream & Ifpack_Graph_Epetra_CrsGraph::Print ( std::ostream &  os) const
virtual

Prints basic information about the graph object.

Implements Ifpack_Graph.

Definition at line 141 of file Ifpack_Graph_Epetra_CrsGraph.cpp.

References Comm().


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