Public Member Functions | Private Member Functions | Private Attributes

escript::AbstractSystemMatrix Class Reference

Give a short description of what AbstractSystemMatrix does. More...

#include <AbstractSystemMatrix.h>

List of all members.

Public Member Functions

ESCRIPT_DLL_API AbstractSystemMatrix ()
 Default constructor for AbstractSystemMatrix.
ESCRIPT_DLL_API AbstractSystemMatrix (const int row_blocksize, const FunctionSpace &row_functionspace, const int column_blocksize, const FunctionSpace &column_functionspace)
virtual ESCRIPT_DLL_API ~AbstractSystemMatrix ()
 Destructor.
ESCRIPT_DLL_API Data vectorMultiply (Data &right) const
 matrix*vector multiplication
ESCRIPT_DLL_API int isEmpty () const
 returns true if the matrix is empty
ESCRIPT_DLL_API FunctionSpace getColumnFunctionSpace () const
 returns the column function space
ESCRIPT_DLL_API FunctionSpace getRowFunctionSpace () const
 returns the row function space
ESCRIPT_DLL_API int getRowBlockSize () const
 returns the row block size
ESCRIPT_DLL_API int getColumnBlockSize () const
 returns the column block size
ESCRIPT_DLL_API Data solve (Data &in, boost::python::object &options) const
 returns the solution u of the linear system this*u=in
virtual ESCRIPT_DLL_API void nullifyRowsAndCols (escript::Data &row_q, escript::Data &col_q, const double mdv) const
 nullifyRowsAndCols - calls Paso_SystemMatrix_nullifyRowsAndCols.
virtual ESCRIPT_DLL_API void saveMM (const std::string &fileName) const
 writes the matrix to a file using the Matrix Market file format
virtual ESCRIPT_DLL_API void saveHB (const std::string &fileName) const
 writes the matrix to a file using the Harwell-Boeing file format
virtual ESCRIPT_DLL_API void resetValues () const
 resets the matrix entries

Private Member Functions

virtual ESCRIPT_DLL_API void setToSolution (Data &out, Data &in, boost::python::object &options) const
 solves the linear system this*out=in
virtual ESCRIPT_DLL_API void ypAx (Data &y, Data &x) const
 performs y+=this*x

Private Attributes

int m_empty
int m_column_blocksize
int m_row_blocksize
FunctionSpace m_row_functionspace
FunctionSpace m_column_functionspace

Detailed Description

Give a short description of what AbstractSystemMatrix does.

Description: Give a detailed description of AbstractSystemMatrix

Template Parameters: For templates describe any conditions that the parameters used in the template must satisfy


Constructor & Destructor Documentation

escript::AbstractSystemMatrix::AbstractSystemMatrix (  ) 

Default constructor for AbstractSystemMatrix.

Description: Default constructor for AbstractSystemMatrix

Preconditions: Describe any preconditions

Throws: Describe any exceptions thrown

References m_empty.

escript::AbstractSystemMatrix::AbstractSystemMatrix ( const int  row_blocksize,
const FunctionSpace row_functionspace,
const int  column_blocksize,
const FunctionSpace column_functionspace 
)
escript::AbstractSystemMatrix::~AbstractSystemMatrix (  )  [virtual]

Destructor.


Member Function Documentation

ESCRIPT_DLL_API int escript::AbstractSystemMatrix::getColumnBlockSize (  )  const [inline]

returns the column block size

References isEmpty(), and m_column_blocksize.

Referenced by solve(), and vectorMultiply().

ESCRIPT_DLL_API FunctionSpace escript::AbstractSystemMatrix::getColumnFunctionSpace (  )  const [inline]

returns the column function space

References isEmpty(), and m_column_functionspace.

Referenced by solve(), and vectorMultiply().

ESCRIPT_DLL_API int escript::AbstractSystemMatrix::getRowBlockSize (  )  const [inline]

returns the row block size

References isEmpty(), and m_row_blocksize.

Referenced by solve(), and vectorMultiply().

ESCRIPT_DLL_API FunctionSpace escript::AbstractSystemMatrix::getRowFunctionSpace (  )  const [inline]

returns the row function space

References isEmpty(), and m_row_functionspace.

Referenced by solve(), and vectorMultiply().

int escript::AbstractSystemMatrix::isEmpty (  )  const
void escript::AbstractSystemMatrix::nullifyRowsAndCols ( escript::Data row_q,
escript::Data col_q,
const double  mdv 
) const [virtual]

nullifyRowsAndCols - calls Paso_SystemMatrix_nullifyRowsAndCols.

Referenced by BOOST_PYTHON_MODULE().

void escript::AbstractSystemMatrix::resetValues (  )  const [virtual]

resets the matrix entries

Referenced by BOOST_PYTHON_MODULE().

void escript::AbstractSystemMatrix::saveHB ( const std::string &  fileName  )  const [virtual]

writes the matrix to a file using the Harwell-Boeing file format

Referenced by BOOST_PYTHON_MODULE().

void escript::AbstractSystemMatrix::saveMM ( const std::string &  fileName  )  const [virtual]

writes the matrix to a file using the Matrix Market file format

Referenced by BOOST_PYTHON_MODULE().

void escript::AbstractSystemMatrix::setToSolution ( Data out,
Data in,
boost::python::object &  options 
) const [private, virtual]

solves the linear system this*out=in

Referenced by solve().

Data escript::AbstractSystemMatrix::solve ( Data in,
boost::python::object &  options 
) const
Data escript::AbstractSystemMatrix::vectorMultiply ( Data right  )  const
void escript::AbstractSystemMatrix::ypAx ( Data y,
Data x 
) const [private, virtual]

performs y+=this*x

Referenced by vectorMultiply().


Member Data Documentation

Referenced by getColumnFunctionSpace().

Referenced by AbstractSystemMatrix(), and isEmpty().

Referenced by getRowFunctionSpace().


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