Main MRPT website > C++ reference
MRPT logo
Public Member Functions

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


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 354 of file CSparseMatrixTemplate.h.

#include <mrpt/math/CSparseMatrixTemplate.h>

Inheritance diagram for mrpt::math::CSparseSymmetricalMatrix< T >:
Inheritance graph
[legend]

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.

Constructor & Destructor Documentation

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

Definition at line 356 of file CSparseMatrixTemplate.h.

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

Definition at line 357 of file CSparseMatrixTemplate.h.

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

Definition at line 358 of file CSparseMatrixTemplate.h.

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

Definition at line 359 of file CSparseMatrixTemplate.h.


Member Function Documentation

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 365 of file CSparseMatrixTemplate.h.

References end().

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 371 of file CSparseMatrixTemplate.h.

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

Definition at line 361 of file CSparseMatrixTemplate.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011