Main MRPT website > C++ reference
MRPT logo
Public Member Functions
mrpt::math::CSparseSymmetricalMatrix Class Reference

Detailed Description

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

#include <mrpt/math/CSparseMatrixTemplate.h>

Inheritance diagram for mrpt::math::CSparseSymmetricalMatrix:
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)
T 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

mrpt::math::CSparseSymmetricalMatrix::CSparseSymmetricalMatrix ( ) [inline]

Definition at line 357 of file CSparseMatrixTemplate.h.

mrpt::math::CSparseSymmetricalMatrix::CSparseSymmetricalMatrix ( const CSparseSymmetricalMatrix &  o) [inline, explicit]

Definition at line 358 of file CSparseMatrixTemplate.h.

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

Definition at line 359 of file CSparseMatrixTemplate.h.

virtual mrpt::math::CSparseSymmetricalMatrix::~CSparseSymmetricalMatrix ( ) [inline, virtual]

Definition at line 360 of file CSparseMatrixTemplate.h.


Member Function Documentation

T mrpt::math::CSparseSymmetricalMatrix::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 366 of file CSparseMatrixTemplate.h.

References end().

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

Reference access operator.

Checks for bounds.

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

Definition at line 372 of file CSparseMatrixTemplate.h.

void mrpt::math::CSparseSymmetricalMatrix::resize ( size_t  matrixSize) [inline]

Definition at line 362 of file CSparseMatrixTemplate.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011