22 a << 1, 2, 3, 4, 5, 6, 7;
23 Eigen::RowVectorXd b(3);
25 BOOST_TEST(
firstN(a, 3) == b);
35 a << 1, 2, 3, 4, 5, 6, 0;
36 std::ostringstream oss;
38 std::string str{oss.str()};
39 BOOST_TEST(str ==
"[1, 2, ... , 6, 0] min:0 max:6");
51 a << 1, 2, 3, 4, 5, 6, 7, 9;
54 b << 1, 2, 3, 4, 5, 6, 8, 0;
58 BOOST_TEST(cwl(a, b));
59 BOOST_TEST(!cwl(b, a));
61 Eigen::VectorXd c = b;
65 BOOST_TEST(!cwl(c, b));
66 BOOST_TEST(!cwl(b, c));
BOOST_AUTO_TEST_CASE(testIQNIMVJPPWithSubsteps)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
contains precice-related utilities.
const RangePreview< Iter > previewRange(Size n, const Range &range)
auto firstN(const Eigen::PlainObjectBase< Derived > &val, unsigned n) -> const Eigen::Map< const Eigen::Matrix< typename Derived::Scalar, 1, Eigen::Dynamic > >
bool componentWiseLess(const Eigen::PlainObjectBase< DerivedLHS > &lhs, const Eigen::PlainObjectBase< DerivedRHS > &rhs)
Main namespace of the precice library.
The RangePreview object used as a lazy proxy struct for proviewing the content of a Range.