Skip to content

Commit

Permalink
match parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
wgledbetter committed Aug 31, 2020
1 parent b958d95 commit 22851b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_autodiff_9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_general, T, all_float_types) {
(p - 1) * p * pow(x[3].derivative(0), p - 2));

// Check log
BOOST_CHECK_EQUAL(y5[2].derivative(0), log(x[0].derivative(0));
BOOST_CHECK_EQUAL(y5[3].derivative(0), log(x[3].derivative(0));
BOOST_CHECK_EQUAL(y5[2].derivative(1), 1/x[2].derivative(0));
BOOST_CHECK_EQUAL(y5[3].derivative(1), 1/x[3].derivative(0));
BOOST_CHECK_EQUAL(y5[2].derivative(2), -1/pow(x[2].derivative(0), 2));
BOOST_CHECK_EQUAL(y5[3].derivative(2), -1/pow(x[3].derivative(0), 2));
BOOST_CHECK_EQUAL(y5[2].derivative(0), log(x[0].derivative(0)));
BOOST_CHECK_EQUAL(y5[3].derivative(0), log(x[3].derivative(0)));
BOOST_CHECK_EQUAL(y5[2].derivative(1), 1 / x[2].derivative(0));
BOOST_CHECK_EQUAL(y5[3].derivative(1), 1 / x[3].derivative(0));
BOOST_CHECK_EQUAL(y5[2].derivative(2), -1 / pow(x[2].derivative(0), 2));
BOOST_CHECK_EQUAL(y5[3].derivative(2), -1 / pow(x[3].derivative(0), 2));
}

BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_scalar, T, all_float_types) {
Expand Down

0 comments on commit 22851b3

Please sign in to comment.