7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE
10 #include <boost/test/unit_test.hpp>
17 using namespace boost;
66 v2 = 2. * (m2 * (m1 *
v));
67 BOOST_CHECK_CLOSE(v2[0], 2., 1
e-6);
68 BOOST_CHECK_CLOSE(v2[1], 4., 1
e-6);
69 BOOST_CHECK_CLOSE(v2[2], 6., 1
e-6);
72 v2 = 2. * m2 * (m1 *
v);
74 BOOST_CHECK_CLOSE(v2[0], 2., 1
e-6);
75 BOOST_CHECK_CLOSE(v2[1], 4., 1
e-6);
76 BOOST_CHECK_CLOSE(v2[2], 6., 1
e-6);
79 v2 = 2. * m2 * m1 *
v;
81 BOOST_CHECK_CLOSE(v2[0], 2., 1
e-6);
82 BOOST_CHECK_CLOSE(v2[1], 4., 1
e-6);
83 BOOST_CHECK_CLOSE(v2[2], 6., 1
e-6);
89 BOOST_AUTO_TEST_SUITE_END()
VectorOperations_Fixture()
common setup for each test case
external boost library namespace
BOOST_AUTO_TEST_CASE(VectorTimesMat)
Multiplication with a matrix.
Real e()
Definition of the Unit charge [C].
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealMatrix
Dynamic sized matrix of Real scalars.
~VectorOperations_Fixture()
common tear-down for each test case
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealVector
Dynamic sized column vector.
Top-level namespace for coolfluid.
Most basic kernel library.
Eigen::Matrix< Real, 3, 1 > RealVector3
Fixed size 3x1 column vector.