43 #ifndef IFPACK_GRAPH_EPETRA_ROWMATRIX_H
44 #define IFPACK_GRAPH_EPETRA_ROWMATRIX_H
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
52 #include "Ifpack_ConfigDefs.h"
53 #include "Ifpack_Graph.h"
54 #include "Epetra_RowMatrix.h"
55 #include "Epetra_Map.h"
56 #include "Teuchos_RefCountPtr.hpp"
94 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
98 if(RowMatrix_->RowMatrixRowMap().GlobalIndicesInt())
99 return (
int) (NumGlobalRows_);
101 throw "Ifpack_Graph_Epetra_RowMatrix::NumGlobalRows: GlobalIndices not int.";
104 long long NumGlobalRows64()
const
106 return(NumGlobalRows_);
109 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
113 if(RowMatrix_->RowMatrixColMap().GlobalIndicesInt())
114 return (
int) (NumGlobalCols_);
116 throw "Ifpack_Graph_Epetra_RowMatrix::NumGlobalCols: GlobalIndices not int.";
119 long long NumGlobalCols64()
const
121 return(NumGlobalCols_);
127 return(MaxNumIndices_);
136 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
140 long long GRID64(
int)
const;
142 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
146 long long GCID64(
int)
const;
148 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
156 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
157 int LRID(
long long)
const;
161 int LCID(
long long)
const;
166 int &NumIndices,
int *Indices)
const;
172 std::ostream&
Print(std::ostream& os)
const;
181 long long NumGlobalRows_;
183 long long NumGlobalCols_;
187 Teuchos::RefCountPtr<const Epetra_RowMatrix> RowMatrix_;
189 mutable std::vector<double> Values_;
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
int NumMyRows() const
Returns the number of local rows.
int MaxMyNumEntries() const
Returns the maximun number of entries for row.
virtual ~Ifpack_Graph_Epetra_RowMatrix()
Destructor.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
int GRID(int) const
Returns the global row ID of input local row.
long long GCID64(int) const
Returns the global column ID of input local column.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
Ifpack_Graph_Epetra_RowMatrix: a class to define Ifpack_Graph as a light-weight conversion of Epetra_...
int NumGlobalCols() const
Returns the number of global columns.
std::ostream & Print(std::ostream &os) const
Prints basic information abobut the graph object.
int NumMyCols() const
Returns the number of local columns.
int GCID(int) const
Returns the global column ID of input local column.
bool Filled() const
Returns true is graph is filled.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
int LCID(int) const
Returns the local column ID of input global column.
int NumGlobalRows() const
Returns the number of global rows.
int LRID(int) const
Returns the local row ID of input global row.
Ifpack_Graph_Epetra_RowMatrix(const Teuchos::RefCountPtr< const Epetra_RowMatrix > &RowMatrix)
Constructor.