43 #ifndef IFPACK_GRAPH_EPETRA_ROWMATRIX_H 44 #define IFPACK_GRAPH_EPETRA_ROWMATRIX_H 48 #include "Epetra_RowMatrix.h" 49 #include "Epetra_Map.h" 50 #include "Teuchos_RefCountPtr.hpp" 53 class Epetra_RowMatrix;
88 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 92 if(
RowMatrix_->RowMatrixRowMap().GlobalIndicesInt())
95 throw "Ifpack_Graph_Epetra_RowMatrix::NumGlobalRows: GlobalIndices not int.";
103 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 107 if(
RowMatrix_->RowMatrixColMap().GlobalIndicesInt())
110 throw "Ifpack_Graph_Epetra_RowMatrix::NumGlobalCols: GlobalIndices not int.";
130 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 134 long long GRID64(
int)
const;
136 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 140 long long GCID64(
int)
const;
142 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 150 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES 151 int LRID(
long long)
const;
155 int LCID(
long long)
const;
160 int &NumIndices,
int *Indices)
const;
163 const Epetra_Comm&
Comm()
const;
166 std::ostream&
Print(std::ostream& os)
const;
long long NumGlobalRows64() const
int LRID(int) const
Returns the local row ID of input global row.
std::vector< double > Values_
Vectors that can be used in calls to ExtractMyRowView of the Row matrix.
virtual ~Ifpack_Graph_Epetra_RowMatrix()
Destructor.
long long NumGlobalCols64() const
long long GCID64(int) const
Returns the global column ID of input local column.
int MaxNumIndices_
Maximum number of indices per row.
int NumMyCols_
Number of local columns.
int NumGlobalRows() const
Returns the number of global rows.
int GRID(int) const
Returns the global row ID of input local row.
bool Filled() const
Returns true is graph is filled.
long long NumGlobalRows_
Number of global rows.
int LCID(int) const
Returns the local column ID of input global column.
int NumMyCols() const
Returns the number of local columns.
int NumGlobalCols() const
Returns the number of global columns.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
std::ostream & Print(std::ostream &os) const
Prints basic information abobut the graph object.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
int MaxMyNumEntries() const
Returns the maximun number of entries for row.
Ifpack_Graph_Epetra_RowMatrix: a class to define Ifpack_Graph as a light-weight conversion of Epetra_...
long long NumGlobalCols_
Number of global columns.
int NumMyRows() const
Returns the number of local rows.
long long GRID64(int) const
int GCID(int) const
Returns the global column ID of input local column.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
int NumMyRows_
Number of local rows.
Teuchos::RefCountPtr< const Epetra_RowMatrix > RowMatrix_
Pointer to the wrapped Epetra_CrsGraph.
Ifpack_Graph_Epetra_RowMatrix(const Teuchos::RefCountPtr< const Epetra_RowMatrix > &RowMatrix)
Constructor.