19 #include <gtest/gtest.h> 29 TEST(Matrices, loadFromArray)
41 EXPECT_EQ( nums[4*
r+
c], mat(
r,
c) );
44 TEST(Matrices, CMatrixFixedNumeric_loadWithEigenMap)
56 EXPECT_EQ( nums[4*
r+
c], mat(
r,
c) );
59 TEST(Matrices, EigenMatrix_loadWithEigenMap)
66 const Eigen::Matrix<double,3,4> mat = Eigen::Map<Eigen::Matrix<double,3,4>, Eigen::Aligned >(nums);
70 EXPECT_EQ( nums[3*
c+
r], mat(
r,
c) );
A namespace of pseudo-random numbers genrators of diferent distributions.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
A numeric matrix of compile-time fixed size.
This base provides a set of functions for maths stuff.
void loadFromArray(const T *vals)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLdouble GLdouble GLdouble r
TEST(Matrices, loadFromArray)