struct mrpt::math::matrix_size_t
Auxiliary class used in CMatrixDynamic : size(), CMatrixDynamic::resize(), CMatrixFixed::size(), CMatrixFixed::resize(), to mimic the behavior of STL-containers.
#include <mrpt/math/matrix_size_t.h> struct matrix_size_t: public std::array< std::size_t, 2 > { // fields T elements; // construction matrix_size_t(); matrix_size_t( const std::size_t rows, const std::size_t cols ); // methods operator std::size_t () const; };
Fields
T elements
STL member.
Methods
operator std::size_t () const
Cast to size_t as the overall number of matrix/vector elements.