COPASI API  4.40.278
CMatrixInterface< MatrixType > Class Template Reference

#include <CArray.h>

Inheritance diagram for CMatrixInterface< MatrixType >:

Public Member Functions

 CMatrixInterface (MatrixType *matrix)
size_t dimensionality () const
data_typeoperator[] (const index_type &index)
const data_typeoperator[] (const index_type &index) const
virtual const index_typesize () const
virtual ~CMatrixInterface ()
- Public Member Functions inherited from CArrayInterface
virtual ~CArrayInterface ()

Private Attributes

MatrixType * mMatrix
std::vector< size_t > mSizes

Additional Inherited Members

- Public Types inherited from CArrayInterface
typedef C_FLOAT64 data_type
typedef std::vector< size_t > index_type

Detailed Description

template<class MatrixType>
class CMatrixInterface< MatrixType >

this class provides an interface to a CMatrix<C_FLOAT64> or a CLinkMatrixView, that is to every 2-dimensional class that has numRows(), numCols(), and operator()(row, col)

Constructor & Destructor Documentation

◆ CMatrixInterface()

template<class MatrixType >
CMatrixInterface< MatrixType >::CMatrixInterface ( MatrixType *  matrix)

◆ ~CMatrixInterface()

template<class MatrixType >
virtual CMatrixInterface< MatrixType >::~CMatrixInterface ( )

Member Function Documentation

◆ dimensionality()

template<class MatrixType >
size_t CMatrixInterface< MatrixType >::dimensionality ( ) const

Implements CArrayInterface.

◆ operator[]() [1/2]

template<class MatrixType >
data_type& CMatrixInterface< MatrixType >::operator[] ( const index_type index)

◆ operator[]() [2/2]

template<class MatrixType >
const data_type& CMatrixInterface< MatrixType >::operator[] ( const index_type index) const

◆ size()

template<class MatrixType >
virtual const index_type& CMatrixInterface< MatrixType >::size ( ) const

Member Data Documentation

◆ mMatrix

◆ mSizes

template<class MatrixType >
std::vector<size_t> CMatrixInterface< MatrixType >::mSizes

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