5 #include "pinocchio/multibody/model.hpp" 8 #include "pinocchio/math/matrix.hpp" 10 #include <boost/test/unit_test.hpp> 11 #include <boost/utility/binary.hpp> 13 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
18 using namespace Eigen;
19 const Eigen::DenseIndex
m = 20,
n = 100;
20 MatrixXd M1(MatrixXd::Ones(m,
n)), M2(MatrixXd::Ones(
n,m));
22 BOOST_CHECK(!res.eval().isZero());
28 using namespace Eigen;
29 const Eigen::DenseIndex
m = 20,
n = 100;
30 MatrixXd
M(MatrixXd::Ones(m,
n));
31 const double alpha = 0.;
33 BOOST_CHECK(res.eval().isZero());
39 using namespace Eigen;
40 const Eigen::DenseIndex
m = 20,
n = 100;
41 MatrixXd
M(MatrixXd::Ones(m,
n));
42 const double alpha = 1.;
44 BOOST_CHECK(res.eval() == M);
47 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(test_matrix_matrix_product)
Main pinocchio namespace.
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_multiple_op< Scalar >, const Matrix > type
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_multiple_op< Scalar >, const Matrix > type
Eigen::ProductReturnType< M1, M2 >::Type type