COPASI API  4.40.278
CLowerTriangularView< Matrix > Class Template Reference

#include <CMatrix.h>

Public Types

typedef Matrix::elementType elementType
 

Public Member Functions

 CLowerTriangularView (const Matrix &A, const elementType zero)
 
size_t numCols () const
 
size_t numRows () const
 
elementType operator() (const size_t &row, const size_t &col) const
 
 ~CLowerTriangularView ()
 

Private Attributes

const Matrix & mA
 
elementType mZero
 

Friends

std::ostream & operator<< (std::ostream &os, const CLowerTriangularView< Matrix > &A)
 

Member Typedef Documentation

◆ elementType

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

Constructor & Destructor Documentation

◆ CLowerTriangularView()

template<class Matrix >
CLowerTriangularView< Matrix >::CLowerTriangularView ( const Matrix &  A,
const elementType  zero 
)
inline

◆ ~CLowerTriangularView()

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

Member Function Documentation

◆ numCols()

template<class Matrix >
size_t CLowerTriangularView< Matrix >::numCols ( ) const
inline

The number of columns of the matrix

Returns
size_t cols

References CLowerTriangularView< Matrix >::mA.

◆ numRows()

template<class Matrix >
size_t CLowerTriangularView< Matrix >::numRows ( ) const
inline

The number of rows of the matrix.

Returns
size_t rows

References CLowerTriangularView< Matrix >::mA.

◆ operator()()

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

Retrieve a matrix element using the indexing style of the matrix.

Parameters
constsize_t & row
constsize_t & col
Returns
elementType element

References CLowerTriangularView< Matrix >::mA, and CLowerTriangularView< Matrix >::mZero.

Friends And Related Function Documentation

◆ operator<<

template<class Matrix >
std::ostream& operator<< ( std::ostream &  os,
const CLowerTriangularView< Matrix > &  A 
)
friend

Output stream operator

Parameters
ostream& os
constCLowerTriangularView< Matrix > & A
Returns
ostream & os

Member Data Documentation

◆ mA

◆ mZero

template<class Matrix >
elementType CLowerTriangularView< Matrix >::mZero
private

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