We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f0c73 commit dac23ddCopy full SHA for dac23dd
1 file changed
include/pycppad/ad_fun.hpp
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2021 INRIA
+ * Copyright 2021-2022 INRIA
3
*/
4
5
#ifndef __pycppad_ad_fun_hpp__
@@ -68,9 +68,11 @@ namespace pycppad
68
x = x_; y = y_;
69
}
70
71
- static ADFun* constructor(const ADVector & x, const ADVector & y)
+ static ADFun* constructor(RefADVector x, RefADVector y)
72
{
73
- ADFun * f = new ADFun(x,y);
+ ADVector x_(x),y_(y);
74
+ ADFun * f = new ADFun(x_,y_);
75
+ x = x_; y = y_;
76
return f;
77
78
0 commit comments