diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-01-05 16:04:05 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-01-05 16:04:05 +0100 |
commit | 801e601ff170b054fc6bec4dee88c6e50bf35519 (patch) | |
tree | abd845bf4695f90ebaf3cebda051063c27f9229f /unsupported/test | |
parent | c3823dce729eec038f13495d5740d7fae6269715 (diff) |
a couple of improvements in the Autodiff module
Diffstat (limited to 'unsupported/test')
-rw-r--r-- | unsupported/test/autodiff.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/test/autodiff.cpp b/unsupported/test/autodiff.cpp index cac08cd4b..a32d85829 100644 --- a/unsupported/test/autodiff.cpp +++ b/unsupported/test/autodiff.cpp @@ -31,7 +31,7 @@ EIGEN_DONT_INLINE Scalar foo(const Scalar& x, const Scalar& y) // return x+std::sin(y); EIGEN_ASM_COMMENT("mybegin"); return static_cast<Scalar>(x*2 - std::pow(x,2) + 2*std::sqrt(y*y) - 4 * std::sin(x) + 2 * std::cos(y) - std::exp(-0.5*x*x)); -// return x - y;//x*2 -std::pow(x,2);//(2*y/x);// - y*2; + //return x+2*y*x;//x*2 -std::pow(x,2);//(2*y/x);// - y*2; EIGEN_ASM_COMMENT("myend"); } |