14 #include <gtest/gtest.h>    17 #include <Eigen/Dense>    24 TEST(Matrices, loadFromArray)
    26     alignas(MRPT_MAX_STATIC_ALIGN_BYTES)
    27         const double nums[3 * 4] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
    32     for (
int r = 0; r < 3; r++)
    33         for (
int c = 0; c < 4; c++) 
EXPECT_EQ(nums[4 * r + c], mat(r, c));
    36 alignas(MRPT_MAX_STATIC_ALIGN_BYTES) 
static double test_nums[3 * 4] = {
    37     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
    39 TEST(Matrices, CMatrixFixedNumeric_loadWithEigenMap)
    47     for (
int r = 0; r < 3; r++)
    51 TEST(Matrices, EigenMatrix_loadWithEigenMap)
    58     for (
int r = 0; r < 3; r++)  
 A namespace of pseudo-random numbers generators of diferent distributions. 
 
A compile-time fixed-size numeric matrix container. 
 
static double test_nums[3 *4]
 
void loadFromArray(const VECTOR &vals)
 
This base provides a set of functions for maths stuff. 
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
 
TEST(Matrices, loadFromArray)