template class mrpt::math::CConstMatrixColumnAccessorExtendedΒΆ

A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] operator, with offset and custom spacing.

See also:

CConstMatrixRowAccessorExtended, CMatrixColumnAccessor, CConstMatrixColumnAccessor, CMatrixColumnAccessorExtended

#include <mrpt/math/matrix_adaptors.h>

template <typename MAT>
class CConstMatrixColumnAccessorExtended
{
public:
    // typedefs

    typedef typename MAT::Scalar value_type;
    typedef CMatrixColumnAccessorExtended<MAT> mrpt_autotype;
    typedef detail::AccessorIterator<const CConstMatrixColumnAccessorExtended<MAT>, const value_type> const_iterator;
    typedef detail::ReverseAccessorIterator<const CConstMatrixColumnAccessorExtended<MAT>, const value_type> const_reverse_iterator;

    // construction

    CConstMatrixColumnAccessorExtended(
        const MAT& mat,
        size_t col,
        size_t offset,
        size_t space
        );

    CConstMatrixColumnAccessorExtended();

    //
methods

    value_type operator [] (size_t i) const;
    const_iterator begin() const;
    const_iterator end() const;
    const_reverse_iterator rbegin() const;
    const_reverse_iterator rend() const;
    size_t size() const;
    void resize(size_t N);
};