14 #include <gtest/gtest.h>    19 #include <Eigen/Dense>    26 #define CHECK_AND_RET_ERROR(_COND_, _MSG_) EXPECT_FALSE(_COND_) << _MSG_;    68         const double vals[] = {
    69             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    70             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    71             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    72             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15};
    75         std::vector<size_t> vs;
    80         mrpt::math::extractSubmatrixSymmetricalBlocks<2>(M, vs, E);
    82         const double valsE[] = {3, 4, 7, 8, 10, 11, 14, 15,
    83                                 3, 4, 7, 8, 10, 11, 14, 15};
    93         const double vals[] = {
    94             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    95             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    96             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
    97             1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15};
   100         std::vector<size_t> vs;
   109         const double valsE[] = {3, 4, 7, 8, 10, 11, 14, 15,
   110                                 3, 4, 7, 8, 10, 11, 14, 15};
 A namespace of pseudo-random numbers generators of diferent distributions. 
 
A compile-time fixed-size numeric matrix container. 
 
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
 
This file implements miscelaneous matrix and matrix/vector operations, and internal functions in mrpt...
 
void extractSubmatrixSymmetricalBlocks(const MAT &m, const std::vector< size_t > &block_indices, MATRIX &out)
Get a submatrix from a square matrix, by collecting the elements M(idxs,idxs), where idxs is a sequen...
 
This base provides a set of functions for maths stuff. 
 
void extractSubmatrixSymmetrical(const MAT &m, const std::vector< size_t > &indices, MATRIX &out)
Get a submatrix from a square matrix, by collecting the elements M(idxs,idxs), where idxs is the sequ...
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
void setSize(size_t row, size_t col, bool zeroNewElements=false)
Changes the size of matrix, maintaining the previous contents.