Template Class CSparseSymmetricalMatrix

Inheritance Relationships

Base Type

Class Documentation

template<class T>
class CSparseSymmetricalMatrix : public mrpt::math::CSparseMatrixTemplate<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.

Public Functions

inline CSparseSymmetricalMatrix()
inline explicit CSparseSymmetricalMatrix(const CSparseSymmetricalMatrix &o)
inline explicit CSparseSymmetricalMatrix(const CSparseMatrixTemplate<T> &o)
virtual ~CSparseSymmetricalMatrix() = default
inline void resize(size_t matrixSize)
inline T operator()(size_t r, size_t c) const
inline T &operator()(size_t r, size_t c)