Public Member Functions | Private Attributes
Playa::EpetraMatrixFactory Class Reference
Inheritance diagram for Playa::EpetraMatrixFactory:
Playa::MatrixFactory< double > Playa::IncrementallyConfigurableMatrixFactory Playa::CollectivelyConfigurableMatrixFactory

List of all members.

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 EpetraVectorSpacerange_
RCP< const EpetraVectorSpacedomain_

Detailed Description

Definition at line 59 of file PlayaEpetraMatrixFactory.hpp.


Constructor & Destructor Documentation

Playa::EpetraMatrixFactory::EpetraMatrixFactory ( const RCP< const EpetraVectorSpace > &  domain,
const RCP< const EpetraVectorSpace > &  range 
)

Construct an uninitialized EpetraMatrixFactory

Definition at line 63 of file PlayaEpetraMatrixFactory.cpp.


Member Function Documentation

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 129 of file PlayaEpetraMatrixFactory.cpp.

References finalize(), graph_, and range_.

Implements Playa::MatrixFactory< double >.

Definition at line 154 of file PlayaEpetraMatrixFactory.cpp.

References epDomain(), epRange(), and graph().

const RCP<const EpetraVectorSpace>& Playa::EpetraMatrixFactory::epDomain ( ) const [inline]

Definition at line 73 of file PlayaEpetraMatrixFactory.hpp.

References domain_.

Referenced by createMatrix().

const RCP<const EpetraVectorSpace>& Playa::EpetraMatrixFactory::epRange ( ) const [inline]

Definition at line 70 of file PlayaEpetraMatrixFactory.hpp.

References range_.

Referenced by createMatrix().

Implements Playa::IncrementallyConfigurableMatrixFactory.

Definition at line 72 of file PlayaEpetraMatrixFactory.cpp.

References domain_, graph_, and range_.

Referenced by configure().

const Epetra_CrsGraph & Playa::EpetraMatrixFactory::graph ( ) const

Definition at line 148 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 106 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.

Parameters:
globalRowIndexthe global index of the row to which these elements belong.
nElemsToInsertthe number of elements being inserted in this step
globalColumnIndicesarray of column indices. Must be nElemsToInsert in length.

Implements Playa::IncrementallyConfigurableMatrixFactory.

Definition at line 90 of file PlayaEpetraMatrixFactory.cpp.

References graph_.


Member Data Documentation

Definition at line 124 of file PlayaEpetraMatrixFactory.hpp.

Referenced by epDomain(), and finalize().

RCP<Epetra_CrsGraph> Playa::EpetraMatrixFactory::graph_ [private]

Definition at line 121 of file PlayaEpetraMatrixFactory.hpp.

Referenced by configure(), epRange(), and finalize().

Site Contact