43 #ifndef IFPACK_GRAPH_H
44 #define IFPACK_GRAPH_H
59 #include "Epetra_ConfigDefs.h"
74 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
93 virtual bool Filled()
const = 0;
95 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
96 virtual int GRID(
int)
const = 0;
100 virtual int GCID(
int)
const = 0;
103 virtual long long GRID64(
int)
const = 0;
106 virtual long long GCID64(
int)
const = 0;
108 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
109 virtual int LRID(
int)
const = 0;
113 virtual int LCID(
int)
const = 0;
116 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
117 virtual int LRID(
long long)
const = 0;
121 virtual int LCID(
long long)
const = 0;
126 int &NumIndices,
int *Indices)
const = 0;
132 virtual std::ostream&
Print(std::ostream& os)
const = 0;
138 return(obj.
Print(os));
141 #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 std::ostream & Print(std::ostream &os) const =0
Prints basic information about the graph object.
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 long long NumGlobalRows64() const =0
virtual int NumGlobalRows() const =0
Returns the number of global rows.
virtual long long GRID64(int) const =0
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.
std::ostream & operator<<(std::ostream &os, const Ifpack_Container &obj)
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.
virtual long long NumGlobalCols64() const =0
virtual long long GCID64(int) const =0
Returns the global column ID of input local column.