Skip to content

Commit

Permalink
some fixes associated with the CppAD version
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoleal committed Jan 9, 2014
1 parent 5502ec1 commit 594f979
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/cppadcg/operations/cond_exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CppAD::ADFun<T>* CondExp_pvvvFunc(const std::vector<CppAD::AD<T> >& X) {
assert(X.size() == 3);

// parameter value
AD<T> one = 1.;
AD<T> one = T(1.);

// dependent variable vector
std::vector< AD<T> > Y(5);
Expand All @@ -49,7 +49,7 @@ CppAD::ADFun<T>* CondExp_vpvvFunc(const std::vector<CppAD::AD<T> >& X) {
assert(X.size() == 3);

// parameter value
AD<T> one = 1.;
AD<T> one = T(1.);

// dependent variable vector
std::vector< AD<T> > Y(5);
Expand All @@ -73,7 +73,7 @@ CppAD::ADFun<T>* CondExp_vvpvFunc(const std::vector<CppAD::AD<T> >& X) {
assert(X.size() == 3);

// parameter value
AD<T> three = 3.;
AD<T> three = T(3.);

// dependent variable vector
std::vector< AD<T> > Y(5);
Expand All @@ -97,7 +97,7 @@ CppAD::ADFun<T>* CondExp_vvvpFunc(const std::vector<CppAD::AD<T> >& X) {
assert(X.size() == 3);

// parameter value
AD<T> three = 3.;
AD<T> three = T(3.);

// dependent variable vector
std::vector< AD<T> > Y(5);
Expand Down
4 changes: 2 additions & 2 deletions test/cppadcg/operations/div.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ CppAD::ADFun<T>* DivTestOneFunc(const std::vector<CppAD::AD<T> >& U) {
size_t t = 1;

// assign some parameters
AD<T> zero = 0.;
AD<T> one = 1.;
AD<T> zero = T(0.);
AD<T> one = T(1.);

// dependent variable vector and indices
std::vector< AD<T> > Z(6);
Expand Down
4 changes: 2 additions & 2 deletions test/cppadcg/operations/mul.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ CppAD::ADFun<T>* MulTestOneFunc(const std::vector<CppAD::AD<T> >& U) {
size_t t = 1;

// assign some parameters
AD<T> zero = 0.;
AD<T> one = 1.;
AD<T> zero = T(0.);
AD<T> one = T(1.);

// dependent variable vector and indices
std::vector< AD<T> > Z(5);
Expand Down

0 comments on commit 594f979

Please sign in to comment.