COPASI API  4.40.278
CLinkMatrixView Class Reference

#include <CLinkMatrix.h>

Public Types

typedef C_FLOAT64 elementType
 

Public Member Functions

 CLinkMatrixView (const CLinkMatrix &A)
 
size_t numCols () const
 
size_t numRows () const
 
C_FLOAT64operator() (const size_t &row, const size_t &col) const
 
CLinkMatrixViewoperator= (const CLinkMatrixView &rhs)
 
 ~CLinkMatrixView ()
 

Private Attributes

const CLinkMatrixmpA
 
const size_t * mpNumIndependent
 

Static Private Attributes

static const C_FLOAT64 mUnit = 1.0
 
static const C_FLOAT64 mZero = 0.0
 

Friends

std::ostream & operator<< (std::ostream &os, const CLinkMatrixView &A)
 

Member Typedef Documentation

◆ elementType

Constructor & Destructor Documentation

◆ CLinkMatrixView()

CLinkMatrixView::CLinkMatrixView ( const CLinkMatrix A)

Default constructor

Parameters
constconst CLinkMatrix & A
constsize_t & mNumIndependent

References CONSTRUCTOR_TRACE.

◆ ~CLinkMatrixView()

CLinkMatrixView::~CLinkMatrixView ( )

Destructor.

References DESTRUCTOR_TRACE.

Member Function Documentation

◆ numCols()

size_t CLinkMatrixView::numCols ( ) const

The number of columns of the matrix

Returns
size_t cols

References mpA, and CMatrix< CType >::numCols().

◆ numRows()

size_t CLinkMatrixView::numRows ( ) const

The number of rows of the matrix.

Returns
size_t rows

References mpA, mpNumIndependent, and CMatrix< CType >::numRows().

◆ operator()()

C_FLOAT64& CLinkMatrixView::operator() ( const size_t &  row,
const size_t &  col 
) const
inline

Retrieve a matrix element using the c-style indexing.

Parameters
constsize_t & row
constsize_t & col
Returns
elementType & element

References C_FLOAT64, mpNumIndependent, mUnit, and mZero.

◆ operator=()

CLinkMatrixView & CLinkMatrixView::operator= ( const CLinkMatrixView rhs)

Assignment operator

Parameters
constCLinkMatrixView & rhs
Returns
CLinkMatrixView & lhs

References mpA, and mpNumIndependent.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CLinkMatrixView A 
)
friend

Output stream operator

Parameters
ostream& os
constCLinkMatrixView & A
Returns
ostream & os

Member Data Documentation

◆ mpA

const CLinkMatrix* CLinkMatrixView::mpA
private

Referenced by numCols(), numRows(), and operator=().

◆ mpNumIndependent

const size_t* CLinkMatrixView::mpNumIndependent
private

Referenced by numRows(), operator()(), and operator=().

◆ mUnit

const C_FLOAT64 CLinkMatrixView::mUnit = 1.0
staticprivate

Referenced by operator()().

◆ mZero

const C_FLOAT64 CLinkMatrixView::mZero = 0.0
staticprivate

Referenced by operator()().


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