18#ifndef __ESCRIPT_ABSTRACTSYSTEMMATRIX_H__
19#define __ESCRIPT_ABSTRACTSYSTEMMATRIX_H__
26#include <boost/python/object.hpp>
32class AbstractSystemMatrix;
80 Data vectorMultiply(
const Data& right)
const;
96 return m_column_functionspace;
107 return m_row_functionspace;
118 return m_row_blocksize;
129 return m_column_blocksize;
136 Data solve(
const Data& in, boost::python::object& options)
const;
145 virtual void nullifyRowsAndCols(
Data& row_q,
Data& col_q,
double mdv);
151 virtual void saveMM(
const std::string& filename)
const;
156 virtual void saveHB(
const std::string& filename)
const;
161 virtual void resetValues(
bool preserveSolverData =
false);
169 virtual void setToSolution(
Data& out,
Data& in,
170 boost::python::object& options)
const;
176 virtual void ypAx(
Data& y,
Data& x)
const;
Typedefs and macros for reference counted storage.
#define POINTER_WRAPPER_CLASS(x)
Definition Pointers.h:33
#define REFCOUNT_BASE_CLASS(x)
Definition Pointers.h:31
Base class for escript system matrices.
Definition AbstractSystemMatrix.h:44
bool isEmpty() const
returns true if the matrix is empty
Definition AbstractSystemMatrix.h:86
FunctionSpace getRowFunctionSpace() const
returns the row function space
Definition AbstractSystemMatrix.h:103
virtual ~AbstractSystemMatrix()
Destructor.
Definition AbstractSystemMatrix.h:62
int m_column_blocksize
Definition AbstractSystemMatrix.h:179
int getColumnBlockSize() const
returns the column block size
Definition AbstractSystemMatrix.h:125
int getRowBlockSize() const
returns the row block size
Definition AbstractSystemMatrix.h:114
FunctionSpace m_row_functionspace
Definition AbstractSystemMatrix.h:181
bool m_empty
Definition AbstractSystemMatrix.h:178
AbstractSystemMatrix()
Default constructor for AbstractSystemMatrix.
Definition AbstractSystemMatrix.h:51
FunctionSpace getColumnFunctionSpace() const
returns the column function space
Definition AbstractSystemMatrix.h:92
FunctionSpace m_column_functionspace
Definition AbstractSystemMatrix.h:182
int m_row_blocksize
Definition AbstractSystemMatrix.h:180
Data represents a collection of datapoints.
Definition Data.h:64
Definition FunctionSpace.h:36
SystemMatrixException exception class.
Definition SystemMatrixException.h:36
#define ESCRIPT_DLL_API
Definition escriptcore/src/system_dep.h:30
Definition AbstractContinuousDomain.cpp:23
boost::shared_ptr< AbstractSystemMatrix > ASM_ptr
Definition AbstractSystemMatrix.h:35
Data operator*(const AbstractSystemMatrix &left, const Data &right)
Definition AbstractSystemMatrix.cpp:60
boost::shared_ptr< const AbstractSystemMatrix > const_ASM_ptr
Definition AbstractSystemMatrix.h:36