MRPT logo

mrpt::math::CSparseSymmetricalMatrix< T > Class Template Reference

A sparse matrix container for square symmetrical content around the main diagonal. More...

#include <mrpt/math/CSparseMatrixTemplate.h>

Inheritance diagram for mrpt::math::CSparseSymmetricalMatrix< T >:

mrpt::math::CSparseMatrixTemplate< T >

List of all members.

Public Member Functions

 CSparseSymmetricalMatrix ()
 CSparseSymmetricalMatrix (const CSparseSymmetricalMatrix &o)
 CSparseSymmetricalMatrix (const CSparseMatrixTemplate< T > &o)
virtual ~CSparseSymmetricalMatrix ()
void resize (size_t matrixSize)
operator() (size_t r, size_t c) const
 Element access operator.
T & operator() (size_t r, size_t c)
 Reference access operator.


Detailed Description

template<class T>
class mrpt::math::CSparseSymmetricalMatrix< T >

A sparse matrix container for square symmetrical content around the main diagonal.

This class saves half of the space with respect to CSparseMatrixTemplate since only those entries (c,r) such as c>=r are really stored, but both (c,r) and (r,c) can be retrieved or set and both redirect to the same internal cell container.

See also:
CSparseMatrixTemplate

Definition at line 304 of file CSparseMatrixTemplate.h.


Constructor & Destructor Documentation

template<class T >
mrpt::math::CSparseSymmetricalMatrix< T >::CSparseSymmetricalMatrix (  )  [inline]

Definition at line 306 of file CSparseMatrixTemplate.h.

template<class T >
mrpt::math::CSparseSymmetricalMatrix< T >::CSparseSymmetricalMatrix ( const CSparseSymmetricalMatrix< T > &  o  )  [inline, explicit]

Definition at line 307 of file CSparseMatrixTemplate.h.

template<class T >
mrpt::math::CSparseSymmetricalMatrix< T >::CSparseSymmetricalMatrix ( const CSparseMatrixTemplate< T > &  o  )  [inline, explicit]

Definition at line 308 of file CSparseMatrixTemplate.h.

template<class T >
virtual mrpt::math::CSparseSymmetricalMatrix< T >::~CSparseSymmetricalMatrix (  )  [inline, virtual]

Definition at line 309 of file CSparseMatrixTemplate.h.


Member Function Documentation

template<class T >
T& mrpt::math::CSparseSymmetricalMatrix< T >::operator() ( size_t  r,
size_t  c 
) [inline]

Reference access operator.

Checks for bounds.

Reimplemented from mrpt::math::CSparseMatrixTemplate< T >.

Definition at line 321 of file CSparseMatrixTemplate.h.

template<class T >
T mrpt::math::CSparseSymmetricalMatrix< T >::operator() ( size_t  r,
size_t  c 
) const [inline]

Element access operator.

Doesn't check bounds.

Reimplemented from mrpt::math::CSparseMatrixTemplate< T >.

Definition at line 315 of file CSparseMatrixTemplate.h.

References mrpt::math::CSparseMatrixTemplate< T >::end().

template<class T >
void mrpt::math::CSparseSymmetricalMatrix< T >::resize ( size_t  matrixSize  )  [inline]

Definition at line 311 of file CSparseMatrixTemplate.h.




Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:21:34 EDT 2009