Skip to content

Commit

Permalink
no typename
Browse files Browse the repository at this point in the history
  • Loading branch information
wgledbetter committed Sep 1, 2020
1 parent 865b86b commit d99a90e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_autodiff_9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_init, T, all_float_types) {
constexpr int size = 5;

constexpr std::size_t n = 5;
typedef typename fvar<T, n> fTn;
typedef fvar<T, n> fTn;
Eigen::Matrix<fTn, size, 1> x;
x[0] = fTn(1.5);
x[1] = make_fvar<T, n - 1>(2.5);
Expand Down Expand Up @@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_general, T, all_float_types) {
constexpr std::size_t n = 2;
constexpr double p = 3.456;

typedef typename fvar<T, n> fTn;
typedef fvar<T, n> fTn;
Eigen::Matrix<fTn, dim, 1> x;
x[0] = make_fvar<T, n>(-1);
x[1] = make_fvar<T, n>(0);
Expand Down Expand Up @@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_scalar, T, all_float_types) {
constexpr int dim = 4;
constexpr size_t n = 4;

typedef typename fvar<T, n> fTn;
typedef fvar<T, n> fTn;
fTn x = make_fvar<T, n>(4);
Eigen::Matrix<fTn, dim, 1> X;
Eigen::Matrix<fTn, dim, 1> Z;
Expand Down Expand Up @@ -172,7 +172,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_vector, T, all_float_types) {
constexpr int dim = 3;
constexpr size_t n = 4;

typedef typename fvar<T, n> fTn;
typedef fvar<T, n> fTn;
fTn x = make_fvar<T, n>(5);
T xD0 = x.derivative(0);
Eigen::Matrix<fTn, dim, 1> X;
Expand Down Expand Up @@ -232,7 +232,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_determinant, T, all_float_types) {
constexpr int dim = 4;
constexpr size_t n = 1;

typedef typename fvar<T, n> fTn;
typedef fvar<T, n> fTn;
fTn x = make_fvar<T, n>(3);
T xD0 = x.derivative(0);
Eigen::Matrix<fTn, dim, dim> M = 10 * Eigen::Matrix<fTn, dim, dim>::Random();
Expand Down

0 comments on commit d99a90e

Please sign in to comment.