copasi API  0.1
Public Types | Public Member Functions | Friends
CUpperTriangularView< Matrix > Class Template Reference

#include <CMatrix.h>

List of all members.

Public Types

typedef Matrix::elementType elementType

Public Member Functions

 CUpperTriangularView (const Matrix &A, const elementType zero)
 ~CUpperTriangularView ()
unsigned C_INT32 numRows () const
unsigned C_INT32 numCols () const
elementType operator() (const unsigned C_INT32 &row, const unsigned C_INT32 &col) const

Friends

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

template<class Matrix>
class CUpperTriangularView< Matrix >


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class Matrix>
CUpperTriangularView< Matrix >::CUpperTriangularView ( const Matrix &  A,
const elementType  zero 
) [inline]
template<class Matrix>
CUpperTriangularView< Matrix >::~CUpperTriangularView ( ) [inline]

Member Function Documentation

template<class Matrix>
unsigned C_INT32 CUpperTriangularView< Matrix >::numCols ( ) const [inline]

The number of columns of the matrix

Returns:
unsigned C_INT32 cols
template<class Matrix>
unsigned C_INT32 CUpperTriangularView< Matrix >::numRows ( ) const [inline]

The number of rows of the matrix.

Returns:
unsigned C_INT32 rows
template<class Matrix>
elementType CUpperTriangularView< Matrix >::operator() ( const unsigned C_INT32 &  row,
const unsigned C_INT32 &  col 
) const [inline]

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

Parameters:
constunsigned C_INT32 & row
constunsigned C_INT32 & col
Returns:
elementType element

Friends And Related Function Documentation

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

Output stream operator

Parameters:
ostream& os
constCUpperTriangularView< Matrix > & A
Returns:
ostream & os

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines