We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e1874 commit 264dc67Copy full SHA for 264dc67
include/pycppad/codegen/code-handler.hpp
@@ -37,11 +37,11 @@ namespace pycppad
37
38
protected:
39
40
- template<typename VectorCG>
41
- static void makeVariables(CodeHandler& self, Eigen::Ref<VectorCG> x)
+ template<typename Vector>
+ static void makeVariables(CodeHandler& self, Eigen::Ref<Vector> x)
42
{
43
- VectorCG x_(x);
44
- ::CppAD::cg::ArrayView<CG> independent_av(x_.data(), x_.size());
+ Vector x_(x);
+ ::CppAD::cg::ArrayView<typename Vector::Scalar> independent_av(x_.data(), x_.size());
45
self.makeVariables(independent_av);
46
x = x_;
47
return;
0 commit comments