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_->NumGlobalRows64();
57 NumGlobalCols_ = RowMatrix_->NumGlobalCols64();
58 MaxNumIndices_ = RowMatrix_->MaxNumEntries();
60 Values_.resize(MaxNumIndices_);
66 return(RowMatrix_->Comm());
72 return(RowMatrix_->Filled());
76 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
79 return(RowMatrix_->RowMatrixRowMap().GID(LRID_in));
85 return(RowMatrix_->RowMatrixColMap().GID(LCID_in));
89 long long Ifpack_Graph_Epetra_RowMatrix::GRID64(
int LRID_in)
const
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,
132 NumIndices, &Values_[0],
139 return(RowMatrix_->NumMyNonzeros());
150 os <<
"================================================================================" << endl;
151 os <<
"Ifpack_Graph_Epetra_RowMatrix" << endl;
152 os <<
"Number of local rows = " << NumMyRows_ << endl;
153 os <<
"Number of global rows = " << NumGlobalRows_ << endl;
154 os <<
"================================================================================" << endl;