44 #include <Epetra_CrsGraph.h>
45 #include <Epetra_BlockMap.h>
64 assert( !orig.IndicesAreGlobal() );
75 for(
int i = 0; i < nNumRows; ++i )
76 matched = matched && ( oRowMap.GID64(i) == NewRowMap_->GID64(i) );
78 for(
int i = 0; i < nNumCols; ++i )
79 matched = matched && ( oColMap.GID64(i) == NewColMap_->GID64(i) );
81 if( !matched ) std::cout <<
"EDT_CrsGraph_View: Bad Row or Col Mapping\n";
85 std::vector<int> numIndices( nNumRows );
86 std::vector<int*> indices( nNumRows );
87 for(
int i = 0; i < nNumRows; ++i )
89 orig.ExtractMyRowView( i, numIndices[i], indices[i] );
93 while( j < numIndices[i] && NewColMap_->GID64(indices[i][j]) != -1 ) ++j;
104 for(
int i = 0; i < nNumRows; ++i )
int InsertMyIndices(int LocalRow, int NumIndices, int *Indices)
int NumMyElements() const
~CrsGraph_View()
Destructor.
NewTypeRef operator()(OriginalTypeRef orig)
Transformation Operator.