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() );
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 );
NewTypeRef operator()(OriginalTypeRef orig)
Transformation Operator.
~CrsMatrix_View()
Destructor.
int FillComplete(bool OptimizeDataStorage=true)
int InsertMyValues(int MyRow, int NumEntries, const double *Values, const int *Indices)
EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix.