COPASI API  4.40.278
CFortranAccess< Matrix > Class Template Reference

#include <CMatrix.h>

Public Types

typedef Matrix::elementType elementType
 

Public Member Functions

 CFortranAccess (Matrix &A)
 
elementTypeoperator() (const size_t &row, const size_t &col)
 
const elementTypeoperator() (const size_t &row, const size_t &col) const
 
elementTypeoperator[] (size_t row)
 
const elementTypeoperator[] (size_t row) const
 
 ~CFortranAccess ()
 

Private Attributes

Matrix & mA
 

Member Typedef Documentation

◆ elementType

template<class Matrix >
typedef Matrix::elementType CFortranAccess< Matrix >::elementType

Constructor & Destructor Documentation

◆ CFortranAccess()

template<class Matrix >
CFortranAccess< Matrix >::CFortranAccess ( Matrix &  A)
inline

◆ ~CFortranAccess()

template<class Matrix >
CFortranAccess< Matrix >::~CFortranAccess ( )
inline

Member Function Documentation

◆ operator()() [1/2]

template<class Matrix >
elementType& CFortranAccess< Matrix >::operator() ( const size_t &  row,
const size_t &  col 
)
inline

Retrieve a matrix element using Fortran style indexing.

Parameters
constsize_t & row
constsize_t & col
Returns
const elementType & element

References CFortranAccess< Matrix >::mA.

◆ operator()() [2/2]

template<class Matrix >
const elementType& CFortranAccess< Matrix >::operator() ( const size_t &  row,
const size_t &  col 
) const
inline

Retrieve a matrix element using Fortran style indexing.

Parameters
constsize_t & row
constsize_t & col
Returns
const elementType & element

References CFortranAccess< Matrix >::mA.

◆ operator[]() [1/2]

template<class Matrix >
elementType* CFortranAccess< Matrix >::operator[] ( size_t  row)
inline

Retrieve a row of the matrix using Fortran style indexing.

Parameters
size_trow
Returns
elementType * row

References CFortranAccess< Matrix >::mA.

◆ operator[]() [2/2]

template<class Matrix >
const elementType* CFortranAccess< Matrix >::operator[] ( size_t  row) const
inline

Retrieve a row of the matrix using Fortran style indexing.

Parameters
size_trow
Returns
const elementType * row

References CFortranAccess< Matrix >::mA.

Member Data Documentation

◆ mA

template<class Matrix >
Matrix& CFortranAccess< Matrix >::mA
private

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