Playa::LoadableMatrix< Scalar > Class Template Reference

#include <PlayaLoadableMatrix.hpp>

List of all members.

Public Member Functions

virtual ~LoadableMatrix ()
virtual void addToRow (int globalRowIndex, int nElemsToInsert, const int *globalColumnIndices, const Scalar *elementValues)=0
virtual void zero ()=0
virtual void addToElementBatch (int numRows, int rowBlockSize, const int *globalRowIndices, int numColumnsPerRow, const int *globalColumnIndices, const Scalar *values, const int *skipRow)


Detailed Description

template<class Scalar>
class Playa::LoadableMatrix< Scalar >

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

Definition at line 17 of file PlayaLoadableMatrix.hpp.


Constructor & Destructor Documentation

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

Virtual dtor

Definition at line 21 of file PlayaLoadableMatrix.hpp.


Member Function Documentation

template<class Scalar>
virtual void Playa::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:
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.
elements array of element values. Must be nElemsToInsert in length

Implemented in Playa::DenseSerialMatrix, and Playa::EpetraMatrix.

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

Set all elements to zero, preserving the existing structure

Implemented in Playa::DenseSerialMatrix, and Playa::EpetraMatrix.

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

Add to a batch of elements

Reimplemented in Playa::EpetraMatrix.

Definition at line 61 of file PlayaLoadableMatrix.hpp.


The documentation for this class was generated from the following file:

doxygen