43 #ifndef IFPACK_GRAPH_H
44 #define IFPACK_GRAPH_H
85 virtual bool Filled()
const = 0;
88 virtual int GRID(
int)
const = 0;
91 virtual int GCID(
int)
const = 0;
94 virtual int LRID(
int)
const = 0;
97 virtual int LCID(
int)
const = 0;
101 int &NumIndices,
int *Indices)
const = 0;
104 virtual const Epetra_Comm&
Comm()
const = 0;
107 virtual ostream&
Print(std::ostream& os)
const = 0;
111 inline ostream& operator<<(ostream& os,
const Ifpack_Graph& obj)
113 return(obj.
Print(os));
116 #endif // iFPACK_GRAPH_H
virtual int ExtractMyRowCopy(int MyRow, int LenOfIndices, int &NumIndices, int *Indices) const =0
Extracts a copy of input local row.
virtual int NumMyRows() const =0
Returns the number of local rows.
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 int LRID(int) const =0
Returns the local row ID of input global 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 ostream & Print(std::ostream &os) const =0
Prints basic information about the graph object.
virtual int NumGlobalRows() const =0
Returns the number of global rows.
virtual int NumMyCols() const =0
Returns the number of local columns.
virtual const Epetra_Comm & Comm() const =0
Returns the communicator object of the graph.
virtual int NumGlobalCols() const =0
Returns the number of global columns.
virtual ~Ifpack_Graph()
Destructor.
virtual int MaxMyNumEntries() const =0
Returns the maximun number of entries for row.
virtual int LCID(int) const =0
Returns the local column ID of input global column.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.