@@ -15,10 +15,10 @@ namespace pycppad
15
15
16
16
template <typename Scalar>
17
17
class ADVisitor
18
- : public bp::def_visitor< ADVisitor<Scalar> >
18
+ : public bp::def_visitor< ADVisitor<Scalar> >
19
19
{
20
- typedef ::CppAD::AD<Scalar> AD;
21
20
public:
21
+ typedef ::CppAD::AD<Scalar> AD;
22
22
23
23
template <class PyClass >
24
24
void visit (PyClass& cl) const
@@ -43,6 +43,7 @@ namespace pycppad
43
43
#pragma GCC diagnostic pop
44
44
#endif
45
45
.def (bp::self *= bp::self)
46
+
46
47
.def (" abs_me" , &AD::abs_me, bp::arg (" self" ))
47
48
.def (" acos_me" , &AD::acos_me, bp::arg (" self" ))
48
49
.def (" asin_me" , &AD::asin_me, bp::arg (" self" ))
@@ -64,6 +65,7 @@ namespace pycppad
64
65
.def (" erf_me" , &AD::erf_me, bp::args (" self" ," complement" ))
65
66
.def (" expm1_me" , &AD::expm1_me, bp::arg (" self" ))
66
67
.def (" log1p_me" , &AD::log1p_me, bp::arg (" self" ))
68
+
67
69
.def (" __str__" ,&print)
68
70
.def (" __repr__" ,&print)
69
71
@@ -111,8 +113,8 @@ namespace pycppad
111
113
.def (ADVisitor<Scalar>());
112
114
113
115
bp::def (" Value" ,&::CppAD::Value<Scalar>,
114
- bp::arg (" x" ),
115
- " Conversion from AD to Base type" );
116
+ bp::arg (" x" ),
117
+ " Conversion from AD to Base type" );
116
118
117
119
eigenpy::registerNewType<AD>();
118
120
eigenpy::registerCommonUfunc<AD>();
0 commit comments