fix compilation and unit test of adolc

This commit is contained in:
Gael Guennebaud
2010-10-26 16:26:20 +02:00
parent 92044fcc2b
commit 5e95ee6662
2 changed files with 14 additions and 13 deletions

View File

@@ -106,7 +106,7 @@ struct TestFunc1
template<typename Func> void adolc_forward_jacobian(const Func& f)
{
typename Func::InputType x = Func::InputType::Random();
typename Func::InputType x = Func::InputType::Random(f.inputs());
typename Func::ValueType y(f.values()), yref(f.values());
typename Func::JacobianType j(f.values(),f.inputs()), jref(f.values(),f.inputs());