43 #ifndef IFPACK_GRAPH_H
44 #define IFPACK_GRAPH_H
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
65 #include "Epetra_ConfigDefs.h"
80 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
88 virtual long long NumGlobalRows64()
const = 0;
90 virtual long long NumGlobalCols64()
const = 0;
99 virtual bool Filled()
const = 0;
101 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
102 virtual int GRID(
int)
const = 0;
106 virtual int GCID(
int)
const = 0;
109 virtual long long GRID64(
int)
const = 0;
112 virtual long long GCID64(
int)
const = 0;
114 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
115 virtual int LRID(
int)
const = 0;
119 virtual int LCID(
int)
const = 0;
122 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
123 virtual int LRID(
long long)
const = 0;
127 virtual int LCID(
long long)
const = 0;
132 int &NumIndices,
int *Indices)
const = 0;
138 virtual std::ostream&
Print(std::ostream& os)
const = 0;
142 inline std::ostream& operator<<(std::ostream& os,
const Ifpack_Graph& obj)
144 return(obj.
Print(os));
147 #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 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.
virtual long long GCID64(int) const =0
Returns the global column ID of input local column.