mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix compilation and unit test of adolc
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user