45 #include <Epetra_CrsMatrix.h>
46 #include <Epetra_IntVector.h>
47 #include <Epetra_Import.h>
48 #include <Epetra_Map.h>
64 if( symmetric_ && colSet_.empty() )
70 colLocations.Import( locations_, Importer, Insert );
71 for(
int i = 0; i < NumMyColElements; ++ i )
72 if( colLocations[i] ) colSet_.insert(i);
76 for(
int i = 0; i < NumMyElements; ++i )
77 if( locations_[i] ) colSet_.insert(i);
81 for(
int i = 0; i < NumMyElements; ++i )
89 for(
int j = 0; j < NumIndices; ++j )
91 if( Indices[j] == i ) Vals[i] = 1.0;
98 for(
int j = 0; j < NumIndices; ++j )
99 if( colSet_.count( Indices[j] ) ) Vals[j] = 0.0;
const Epetra_Map & ColMap() const
bool fwd()
Applies Dirichlet BC's.
int ExtractMyRowView(int MyRow, int &NumEntries, double *&Values, int *&Indices) const
const Epetra_Map & RowMap() const
int NumMyElements() const
bool IndicesAreGlobal() const