aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/NumericalDiff.cpp
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2009-09-28 17:45:45 +0200
committerGravatar Thomas Capricelli <orzel@freehackers.org>2009-09-28 17:45:45 +0200
commit977ed615a66a7a9d0f0ee59439b2137f000918c2 (patch)
tree93c8ca3502e562d486cf27df91006edbb132d8e1 /unsupported/test/NumericalDiff.cpp
parent7968737247b668aade639fe8e4198de978a167dc (diff)
be sure that there's no name clash between NumericalDiff::df and the
original functor df()
Diffstat (limited to 'unsupported/test/NumericalDiff.cpp')
-rw-r--r--unsupported/test/NumericalDiff.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/test/NumericalDiff.cpp b/unsupported/test/NumericalDiff.cpp
index ba9f4331d..27d888056 100644
--- a/unsupported/test/NumericalDiff.cpp
+++ b/unsupported/test/NumericalDiff.cpp
@@ -50,7 +50,7 @@ struct my_functor : Functor<double>
return 0;
}
- int df(const VectorXd &x, MatrixXd &fjac) const
+ int actual_df(const VectorXd &x, MatrixXd &fjac) const
{
double tmp1, tmp2, tmp3, tmp4;
for (int i = 0; i < values(); i++)
@@ -77,7 +77,7 @@ void test_forward()
x << 0.082, 1.13, 2.35;
// real one
- functor.df(x, actual_jac);
+ functor.actual_df(x, actual_jac);
// std::cout << actual_jac << std::endl << std::endl;
// using NumericalDiff
@@ -98,7 +98,7 @@ void test_central()
x << 0.082, 1.13, 2.35;
// real one
- functor.df(x, actual_jac);
+ functor.actual_df(x, actual_jac);
// using NumericalDiff
NumericalDiff<my_functor,Central> numDiff(functor);