Public Member Functions | |
EpetraMatrixFactory (const RCP< const EpetraVectorSpace > &domain, const RCP< const EpetraVectorSpace > &range) | |
const RCP< const EpetraVectorSpace > & | epRange () const |
const RCP< const EpetraVectorSpace > & | epDomain () const |
virtual void | initializeNonzerosInRow (int globalRowIndex, int nElemsToInsert, const int *globalColumnIndices) |
virtual void | initializeNonzeroBatch (int numRows, int rowBlockSize, const int *globalRowIndices, int numColumnsPerRow, const int *globalColumnIndices, const int *skipRow) |
virtual void | configure (int lowestRow, const std::vector< int > &rowPtrs, const std::vector< int > &nnzPerRow, const std::vector< int > &data) |
void | finalize () |
const Epetra_CrsGraph & | graph () const |
virtual LinearOperator< double > | createMatrix () const |
Private Attributes | |
RCP< Epetra_CrsGraph > | graph_ |
RCP< const EpetraVectorSpace > | range_ |
RCP< const EpetraVectorSpace > | domain_ |
Definition at line 22 of file PlayaEpetraMatrixFactory.hpp.
Playa::EpetraMatrixFactory::EpetraMatrixFactory | ( | const RCP< const EpetraVectorSpace > & | domain, | |
const RCP< const EpetraVectorSpace > & | range | |||
) |
Construct an uninitialized EpetraMatrixFactory
Definition at line 26 of file PlayaEpetraMatrixFactory.cpp.
void Playa::EpetraMatrixFactory::configure | ( | int | lowestRow, | |
const std::vector< int > & | rowPtrs, | |||
const std::vector< int > & | nnzPerRow, | |||
const std::vector< int > & | data | |||
) | [virtual] |
Configure all rows at once
Implements Playa::CollectivelyConfigurableMatrixFactory.
Definition at line 92 of file PlayaEpetraMatrixFactory.cpp.
References finalize(), graph_, and range_.
LinearOperator< double > Playa::EpetraMatrixFactory::createMatrix | ( | ) | const [virtual] |
Implements Playa::MatrixFactory< double >.
Definition at line 117 of file PlayaEpetraMatrixFactory.cpp.
References epDomain(), epRange(), and graph().
const RCP<const EpetraVectorSpace>& Playa::EpetraMatrixFactory::epDomain | ( | ) | const [inline] |
Definition at line 36 of file PlayaEpetraMatrixFactory.hpp.
References domain_.
Referenced by createMatrix().
const RCP<const EpetraVectorSpace>& Playa::EpetraMatrixFactory::epRange | ( | ) | const [inline] |
Definition at line 33 of file PlayaEpetraMatrixFactory.hpp.
References range_.
Referenced by createMatrix().
void Playa::EpetraMatrixFactory::finalize | ( | ) | [virtual] |
Implements Playa::IncrementallyConfigurableMatrixFactory.
Definition at line 35 of file PlayaEpetraMatrixFactory.cpp.
References domain_, graph_, and range_.
Referenced by configure().
const Epetra_CrsGraph & Playa::EpetraMatrixFactory::graph | ( | ) | const |
Definition at line 111 of file PlayaEpetraMatrixFactory.cpp.
References graph_.
Referenced by createMatrix().
void Playa::EpetraMatrixFactory::initializeNonzeroBatch | ( | int | numRows, | |
int | rowBlockSize, | |||
const int * | globalRowIndices, | |||
int | numColumnsPerRow, | |||
const int * | globalColumnIndices, | |||
const int * | skipRow | |||
) | [virtual] |
Initialize nonzeros in a batch of rows.
Reimplemented from Playa::IncrementallyConfigurableMatrixFactory.
Definition at line 69 of file PlayaEpetraMatrixFactory.cpp.
References graph_.
void Playa::EpetraMatrixFactory::initializeNonzerosInRow | ( | int | globalRowIndex, | |
int | nElemsToInsert, | |||
const int * | globalColumnIndices | |||
) | [virtual] |
Initialize a set of nonzero elements in the matrix's graph.
globalRowIndex | the global index of the row to which these elements belong. | |
nElemsToInsert | the number of elements being inserted in this step | |
globalColumnIndices | array of column indices. Must be nElemsToInsert in length. |
Implements Playa::IncrementallyConfigurableMatrixFactory.
Definition at line 53 of file PlayaEpetraMatrixFactory.cpp.
References graph_.
RCP<const EpetraVectorSpace> Playa::EpetraMatrixFactory::domain_ [private] |
Definition at line 87 of file PlayaEpetraMatrixFactory.hpp.
Referenced by epDomain(), and finalize().
RCP<Epetra_CrsGraph> Playa::EpetraMatrixFactory::graph_ [private] |
Definition at line 81 of file PlayaEpetraMatrixFactory.hpp.
Referenced by configure(), finalize(), graph(), initializeNonzeroBatch(), and initializeNonzerosInRow().
RCP<const EpetraVectorSpace> Playa::EpetraMatrixFactory::range_ [private] |
Definition at line 84 of file PlayaEpetraMatrixFactory.hpp.
Referenced by configure(), epRange(), and finalize().