51#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
56 : OrigMatrix_(OrigMatrix),
58 TransposeExporter_(0),
60 TransposeCreated_(false),
61 MakeDataContiguous_(false),
70 TransMyGlobalEquations_(NULL),
71 OrigMatrixIsCrsMatrix_(false)
76 :OrigMatrix_(Source.OrigMatrix_),
78 TransposeExporter_(0),
80 TransposeCreated_(Source.TransposeCreated_),
81 MakeDataContiguous_(Source.MakeDataContiguous_),
90 TransMyGlobalEquations_(NULL),
91 OrigMatrixIsCrsMatrix_(false)
143 if (TransposeRowMap_in==0)
222 for (j=0; j<NumIndices; j++) {
269 if (MakeDataContiguous) {
281 int i, j, NumIndices;
313 for (j=0; j<NumIndices; j++) {
358 bool throw_error =
true;
360 std::cerr << std::endl
361 <<
"Epetra_RowMatrixTransposer::operator= not supported."
#define EPETRA_CHK_ERR(a)
int MyGlobalElements(int *MyGlobalElementList) const
Puts list of global elements on this processor into the user-provided array.
long long GID64(int LID) const
Epetra_CrsGraph: A class for constructing and using sparse compressed row graphs.
int ExtractMyRowView(int LocalRow, int &NumIndices, int *&Indices) const
Get a view of the elements in a specified local row of the graph.
Epetra_CrsMatrix: A class for constructing and using real-valued double-precision sparse compressed r...
int MakeDataContiguous()
Eliminates memory that is used for construction. Make consecutive row index sections contiguous.
int ExtractMyRowView(int MyRow, int &NumEntries, double *&Values, int *&Indices) const
Returns a view of the specified local row values via pointers to internal data.
int FillComplete(bool OptimizeDataStorage=true)
Signal that data entry is complete. Perform transformations to local index space.
int PutScalar(double ScalarConstant)
Initialize all values in the matrix with constant value.
const Epetra_CrsGraph & Graph() const
Returns a reference to the Epetra_CrsGraph object associated with this matrix.
virtual int InsertGlobalValues(int GlobalRow, int NumEntries, const double *Values, const int *Indices)
Insert a list of elements in a given global row of the matrix.
int Export(const Epetra_SrcDistObject &A, const Epetra_Import &Importer, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor=0)
Exports an Epetra_DistObject using the Epetra_Import object.
Epetra_Export: This class builds an export object for efficient exporting of off-processor elements.
Epetra_Map: A class for partitioning vectors and matrices.
virtual const Epetra_Map & OperatorDomainMap() const =0
Returns the Epetra_Map object associated with the domain of this operator.
virtual const Epetra_Map & OperatorRangeMap() const =0
Returns the Epetra_Map object associated with the range of this operator.
Epetra_RowMatrixTransposer: A class for transposing an Epetra_RowMatrix object.
int UpdateTransposeValues(Epetra_RowMatrix *MatrixWithNewValues)
Update the values of an already-redistributed problem.
bool OrigMatrixIsCrsMatrix_
Epetra_Export * TransposeExporter_
int CreateTranspose(const bool MakeDataContiguous, Epetra_CrsMatrix *&TransposeMatrix, Epetra_Map *TransposeRowMap=0)
Generate a new Epetra_CrsMatrix as the transpose of an Epetra_RowMatrix passed into the constructor.
Epetra_RowMatrix * OrigMatrix_
Epetra_CrsMatrix * TransposeMatrix_
Epetra_RowMatrixTransposer(Epetra_RowMatrix *OrigMatrix)
Primary Epetra_RowMatrixTransposer constructor.
Epetra_Map * TransposeRowMap_
int * TransMyGlobalEquations_
virtual ~Epetra_RowMatrixTransposer()
Epetra_RowMatrixTransposer destructor.
Epetra_RowMatrixTransposer & operator=(const Epetra_RowMatrixTransposer &src)
Epetra_RowMatrix: A pure virtual class for using real-valued double-precision row matrices.
virtual int NumMyRows() const =0
Returns the number of matrix rows owned by the calling processor.
virtual int NumMyCols() const =0
Returns the number of matrix columns owned by the calling processor.
virtual const Epetra_Map & RowMatrixColMap() const =0
Returns the Epetra_Map object associated with the columns of this matrix.
virtual const Epetra_Map & RowMatrixRowMap() const =0
Returns the Epetra_Map object associated with the rows of this matrix.
virtual int NumMyRowEntries(int MyRow, int &NumEntries) const =0
Returns the number of nonzero entries in MyRow.
virtual int ExtractMyRowCopy(int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const =0
Returns a copy of the specified local row in user-provided arrays.