46 #include "Epetra_Comm.h"
47 #include "Epetra_Map.h"
48 #include "Epetra_RowMatrix.h"
76 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
79 return(
RowMatrix_->RowMatrixRowMap().GID(LRID_in));
85 return(
RowMatrix_->RowMatrixColMap().GID(LCID_in));
91 return(
RowMatrix_->RowMatrixRowMap().GID64(LRID_in));
97 return(
RowMatrix_->RowMatrixColMap().GID64(LCID_in));
101 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
104 return(
RowMatrix_->RowMatrixRowMap().LID(GRID_in));
110 return(
RowMatrix_->RowMatrixColMap().LID(GCID_in));
114 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
117 return(
RowMatrix_->RowMatrixRowMap().LID(GRID_in));
123 return(
RowMatrix_->RowMatrixColMap().LID(GCID_in));
129 int &NumIndices,
int *Indices)
const
131 return(
RowMatrix_->ExtractMyRowCopy(MyRow, LenOfIndices,
150 os <<
"================================================================================" << endl;
151 os <<
"Ifpack_Graph_Epetra_RowMatrix" << endl;
152 os <<
"Number of local rows = " <<
NumMyRows_ << endl;
154 os <<
"================================================================================" << endl;
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
std::vector< double > Values_
Vectors that can be used in calls to ExtractMyRowView of the Row matrix.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
int MaxNumIndices_
Maximum number of indices per row.
int NumMyCols_
Number of local columns.
int GRID(int) const
Returns the global row ID of input local row.
long long NumGlobalRows_
Number of global rows.
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.
long long GRID64(int) const
std::ostream & Print(std::ostream &os) const
Prints basic information abobut the graph object.
long long NumGlobalCols_
Number of global columns.
int GCID(int) const
Returns the global column ID of input local column.
bool Filled() const
Returns true is graph is filled.
int LCID(int) const
Returns the local column ID of input global column.
int NumMyRows_
Number of local rows.
Teuchos::RefCountPtr< const Epetra_RowMatrix > RowMatrix_
Pointer to the wrapped Epetra_CrsGraph.
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.