44 #include <Epetra_CrsGraph.h>
45 #include <Epetra_CrsMatrix.h>
61 if( orig.IndicesAreGlobal() ) std::cout <<
"EDT_CrsMatrix_View: Indices must be LOCAL!\n";
62 assert( !orig.IndicesAreGlobal() );
73 int numMyRows = newMatrix->NumMyRows();
74 for(
int i = 0; i < numMyRows; ++i )
76 orig.ExtractMyRowView( i, indicesCnt, myValues, myIndices );
78 int newIndicesCnt = indicesCnt;
80 for(
int j = 0; j < indicesCnt; ++j )
81 if( !done && NewGraph_.GCID64( myIndices[j] ) == -1 )
87 newMatrix->InsertMyValues( i, newIndicesCnt, myValues, myIndices );
90 newMatrix->FillComplete(
false);
NewTypeRef operator()(OriginalTypeRef orig)
Transformation Operator.
~CrsMatrix_View()
Destructor.