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

List of all members.

Public Member Functions

 EpetraMatrixFactory (const RCP< const EpetraVectorSpace > &domain, const RCP< const EpetraVectorSpace > &range)
 Construct an uninitialized EpetraMatrixFactory.
const RCP< const
EpetraVectorSpace > & 
epRange () const
const RCP< const
EpetraVectorSpace > & 
epDomain () const
virtual void initializeNonzerosInRow (int globalRowIndex, int nElemsToInsert, const int *globalColumnIndices)
 Initialize a set of nonzero elements in the matrix's graph.
virtual void initializeNonzeroBatch (int numRows, int rowBlockSize, const int *globalRowIndices, int numColumnsPerRow, const int *globalColumnIndices, const int *skipRow)
 Initialize nonzeros in a batch of rows.
virtual void configure (int lowestRow, const std::vector< int > &rowPtrs, const std::vector< int > &nnzPerRow, const std::vector< int > &data)
 Configure all rows at once.
void finalize ()
 Finalize values of the matrix.
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 46 of file TSFEpetraMatrixFactory.hpp.


Constructor & Destructor Documentation

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

Construct an uninitialized EpetraMatrixFactory.

Definition at line 48 of file TSFEpetraMatrixFactory.cpp.


Member Function Documentation

void 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 TSFExtended::CollectivelyConfigurableMatrixFactory.

Definition at line 113 of file TSFEpetraMatrixFactory.cpp.

References finalize(), graph_, and range_.

LinearOperator< double > EpetraMatrixFactory::createMatrix ( ) const [virtual]

Implements TSFExtended::MatrixFactory< double >.

Definition at line 138 of file TSFEpetraMatrixFactory.cpp.

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

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

Definition at line 60 of file TSFEpetraMatrixFactory.hpp.

Referenced by createMatrix().

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

Definition at line 57 of file TSFEpetraMatrixFactory.hpp.

Referenced by createMatrix().

void EpetraMatrixFactory::finalize ( ) [virtual]

Finalize values of the matrix.

This is a hook for any implementation-dependent steps that must be done after loading of elements.

Implements TSFExtended::IncrementallyConfigurableMatrixFactory.

Definition at line 56 of file TSFEpetraMatrixFactory.cpp.

References domain_, graph_, and range_.

Referenced by configure().

const Epetra_CrsGraph & EpetraMatrixFactory::graph ( ) const

Definition at line 132 of file TSFEpetraMatrixFactory.cpp.

References graph_.

Referenced by createMatrix().

void 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 TSFExtended::IncrementallyConfigurableMatrixFactory.

Definition at line 90 of file TSFEpetraMatrixFactory.cpp.

References graph_.

void 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 TSFExtended::IncrementallyConfigurableMatrixFactory.

Definition at line 74 of file TSFEpetraMatrixFactory.cpp.

References graph_.


Member Data Documentation

Definition at line 111 of file TSFEpetraMatrixFactory.hpp.

Referenced by finalize().

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

Definition at line 108 of file TSFEpetraMatrixFactory.hpp.

Referenced by configure(), and finalize().

Site Contact