43 #include "Ifpack_ConfigDefs.h"
44 #include "Ifpack_Graph.h"
45 #include "Ifpack_Graph_Epetra_RowMatrix.h"
46 #include "Epetra_Comm.h"
47 #include "Epetra_Map.h"
48 #include "Epetra_RowMatrix.h"
54 NumMyRows_ = RowMatrix_->NumMyRows();
55 NumMyCols_ = RowMatrix_->NumMyCols();
56 NumGlobalRows_ = RowMatrix_->NumGlobalRows();
57 NumGlobalCols_ = RowMatrix_->NumGlobalCols();
58 MaxNumIndices_ = RowMatrix_->MaxNumEntries();
60 Values_.resize(MaxNumIndices_);
66 return(RowMatrix_->Comm());
72 return(RowMatrix_->Filled());
78 return(RowMatrix_->RowMatrixRowMap().GID(LRID_in));
84 return(RowMatrix_->RowMatrixColMap().GID(LCID_in));
90 return(RowMatrix_->RowMatrixRowMap().LID(GRID_in));
96 return(RowMatrix_->RowMatrixColMap().LID(GCID_in));
102 int &NumIndices,
int *Indices)
const
104 return(RowMatrix_->ExtractMyRowCopy(MyRow, LenOfIndices,
105 NumIndices, &Values_[0],
112 return(RowMatrix_->NumMyNonzeros());
122 os <<
"================================================================================" << endl;
123 os <<
"Ifpack_Graph_Epetra_RowMatrix" << endl;
124 os <<
"Number of local rows = " << NumMyRows_ << endl;
125 os <<
"Number of global rows = " << NumGlobalRows_ << endl;
126 os <<
"================================================================================" << endl;
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
int GRID(int) const
Returns the global row ID of input local row.
ostream & Print(std::ostream &os) const
Prints basic information abobut the graph object.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
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 LRID(int) const
Returns the local row ID of input global row.
Ifpack_Graph_Epetra_RowMatrix(const Teuchos::RefCountPtr< const Epetra_RowMatrix > &RowMatrix)
Constructor.