18 Eigen::MatrixXd xs(3, 2);
19 xs << 1, 2, 10, 20, 100, 200;
42 Eigen::Vector2d teval;
45 BOOST_ASSERT(
equals(
ts[0], teval[0]));
46 BOOST_ASSERT(
equals(
ts[1], teval[1]));
48 Eigen::MatrixXd xs(3, 2);
49 xs << 1, 2, 10, 20, 100, 200;
63 Eigen::MatrixXd xs(3, 3);
64 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
82 Eigen::MatrixXd xs(3, 3);
83 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
101 Eigen::MatrixXd xs(3, 3);
102 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
120 Eigen::MatrixXd xs(3, 3);
121 xs << 1, 2, 3, 10, 20, 30, 100, 200, 300;
129 BOOST_TEST(
equals(bspline.
interpolateAt(0.5), Eigen::Vector3d(37.0 / 24, 370.0 / 24, 3700.0 / 24), 1e-13));
130 BOOST_TEST(
equals(bspline.
interpolateAt(2.0), Eigen::Vector3d(8.0 / 3, 80.0 / 3, 800.0 / 3), 1e-13));
139 Eigen::MatrixXd xs(3, 2);
140 xs << 1, 2, 10, 20, 100, 200;
143 BOOST_TEST(
equals(bspline.interpolateAt(256.1), Eigen::Vector3d(1, 10, 100)));
144 BOOST_TEST(
equals(bspline.interpolateAt(256.2), Eigen::Vector3d(2, 20, 200)));
146 BOOST_TEST(
equals(bspline.interpolateAt(256.1 + 0.1), Eigen::Vector3d(2, 20, 200)));
BOOST_AUTO_TEST_CASE(testIQNIMVJPPWithSubsteps)
BOOST_AUTO_TEST_CASE(TwoPointsLinear)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
Eigen::VectorXd interpolateAt(double t) const
Samples the B-Spline interpolation.
contains the testing framework.
boost::test_tools::predicate_result equals(const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands o...