Public Member Functions
TSFExtended::LoadableMatrix< Scalar > Class Template Reference

Class LoadableMatrix provides an abstract interface for loading elements into a matrix. More...

Inheritance diagram for TSFExtended::LoadableMatrix< Scalar >:
TSFExtended::LoadableBlockOperator< Scalar >

List of all members.

Public Member Functions

virtual ~LoadableMatrix ()
 Virtual dtor.
virtual void addToRow (int globalRowIndex, int nElemsToInsert, const int *globalColumnIndices, const Scalar *elementValues)=0
 Insert a set of elements in a row, adding to any previously existing values.
virtual void zero ()=0
 Set all elements to zero, preserving the existing structure.
virtual void addToElementBatch (int numRows, int rowBlockSize, const int *globalRowIndices, int numColumnsPerRow, const int *globalColumnIndices, const Scalar *values, const int *skipRow)
 Add to a batch of elements.

Detailed Description

template<class Scalar>
class TSFExtended::LoadableMatrix< Scalar >

Class LoadableMatrix provides an abstract interface for loading elements into a matrix.

Definition at line 41 of file TSFLoadableMatrix.hpp.


Constructor & Destructor Documentation

template<class Scalar>
virtual TSFExtended::LoadableMatrix< Scalar >::~LoadableMatrix ( ) [inline, virtual]

Virtual dtor.

Definition at line 45 of file TSFLoadableMatrix.hpp.


Member Function Documentation

template<class Scalar>
void TSFExtended::LoadableMatrix< Scalar >::addToElementBatch ( int  numRows,
int  rowBlockSize,
const int *  globalRowIndices,
int  numColumnsPerRow,
const int *  globalColumnIndices,
const Scalar *  values,
const int *  skipRow 
) [virtual]

Add to a batch of elements.

Reimplemented in TSFExtended::EpetraMatrix.

Definition at line 85 of file TSFLoadableMatrix.hpp.

template<class Scalar>
virtual void TSFExtended::LoadableMatrix< Scalar >::addToRow ( int  globalRowIndex,
int  nElemsToInsert,
const int *  globalColumnIndices,
const Scalar *  elementValues 
) [pure virtual]

Insert a set of elements in a row, adding to any previously existing values.

The nonzero structure of the matrix must have been determined at construction time.

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.
elementsarray of element values. Must be nElemsToInsert in length

Implemented in TSFExtended::DenseSerialMatrix, TSFExtended::EpetraMatrix, and TSFExtended::LoadableBlockOperator< Scalar >.

template<class Scalar>
virtual void TSFExtended::LoadableMatrix< Scalar >::zero ( ) [pure virtual]

Set all elements to zero, preserving the existing structure.

Implemented in TSFExtended::DenseSerialMatrix, TSFExtended::EpetraMatrix, and TSFExtended::LoadableBlockOperator< Scalar >.

Site Contact