Skip to content

Commit 264dc67

Browse files
committed
cppadcg: fix Scalar type
1 parent 28e1874 commit 264dc67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/pycppad/codegen/code-handler.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ namespace pycppad
3737

3838
protected:
3939

40-
template<typename VectorCG>
41-
static void makeVariables(CodeHandler& self, Eigen::Ref<VectorCG> x)
40+
template<typename Vector>
41+
static void makeVariables(CodeHandler& self, Eigen::Ref<Vector> x)
4242
{
43-
VectorCG x_(x);
44-
::CppAD::cg::ArrayView<CG> independent_av(x_.data(), x_.size());
43+
Vector x_(x);
44+
::CppAD::cg::ArrayView<typename Vector::Scalar> independent_av(x_.data(), x_.size());
4545
self.makeVariables(independent_av);
4646
x = x_;
4747
return;

0 commit comments

Comments
 (0)