linalg::c_matrix< _Tp > Class Template Reference
[Classes and types for basic data management]

Sparse Matrix Template Class (column major). More...

#include <linalg.h>

List of all members.

Public Types

typedef mtl::matrix< _Tp,
mtl::rectangle
<>, mtl::compressed
<>, mtl::column_major >::type 
_Base
typedef _Base::OneD Col

Public Member Functions

 c_matrix ()
 c_matrix (const _Self &__m)
 c_matrix (const size_t &n, const size_t &m)
void setOutputFormat (const linalg_output_format &f)
const linalg_output_formatgetOutputFormat () const
_Selfoperator+= (const _Self &a)
_Selfoperator*= (_Tp a)
bool operator== (const _Self &a) const
bool operator!= (const _Self &a) const

Protected Attributes

linalg_output_format output_format

Friends

template<typename _Tq >
std::ostream & std::operator<< (std::ostream &s, const c_matrix< _Tq > &A)


Detailed Description

template<class _Tp>
class linalg::c_matrix< _Tp >

This class is the base class for all matrix storage/computation in the COCONUT environment. It is based on the MTL, but wraps the MTL classes to make changing the matrix library possible (and hopefully not too awkward. The matrix is general rectangular column-major.

Definition at line 439 of file linalg.h.


Member Typedef Documentation

template<class _Tp>
typedef mtl::matrix<_Tp, mtl::rectangle<>, mtl::compressed<>, mtl::column_major>::type linalg::c_matrix< _Tp >::_Base

The base class

Definition at line 444 of file linalg.h.

template<class _Tp>
typedef _Base::OneD linalg::c_matrix< _Tp >::Col

This is the row type of the matrix class.

Definition at line 446 of file linalg.h.


Constructor & Destructor Documentation

template<class _Tp>
linalg::c_matrix< _Tp >::c_matrix (  )  [inline]

The Standard Constructor

Definition at line 456 of file linalg.h.

template<class _Tp>
linalg::c_matrix< _Tp >::c_matrix ( const _Self __m  )  [inline]

Definition at line 457 of file linalg.h.

template<class _Tp>
linalg::c_matrix< _Tp >::c_matrix ( const size_t &  n,
const size_t &  m 
) [inline]

Definition at line 460 of file linalg.h.


Member Function Documentation

template<class _Tp>
const linalg_output_format& linalg::c_matrix< _Tp >::getOutputFormat (  )  const [inline]

This method returns the output format of the matrix.

Definition at line 467 of file linalg.h.

template<class _Tp>
bool linalg::c_matrix< _Tp >::operator!= ( const _Self a  )  const

Standard comparison operator.

template<class _Tp>
_Self& linalg::c_matrix< _Tp >::operator*= ( _Tp  a  )  [inline]

This operator multiplies this matrix by a.

Definition at line 500 of file linalg.h.

template<class _Tp>
_Self& linalg::c_matrix< _Tp >::operator+= ( const _Self a  )  [inline]

This operator adds a to this matrix.

Definition at line 492 of file linalg.h.

template<class _Tp>
bool linalg::c_matrix< _Tp >::operator== ( const _Self a  )  const

Standard comparison operator.

template<class _Tp>
void linalg::c_matrix< _Tp >::setOutputFormat ( const linalg_output_format f  )  [inline]

This method sets the output format of the matrix.

Definition at line 464 of file linalg.h.


Friends And Related Function Documentation

template<class _Tp>
template<typename _Tq >
std::ostream& std::operator<< ( std::ostream &  s,
const c_matrix< _Tq > &  A 
) [friend]


Member Data Documentation

template<class _Tp>
linalg_output_format linalg::c_matrix< _Tp >::output_format [protected]

This variable describes the output format for matrix output. Its possible values are linalg_output_sparse and linalg_output_full.

Definition at line 452 of file linalg.h.


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

Generated on Tue Feb 9 14:50:07 2010 for COCONUT API by  doxygen 1.5.8