Skip to content

Commit 151dba3

Browse files
jcarpentproyan
authored andcommitted
ad: cosmetic change
1 parent 4ddadfb commit 151dba3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/pycppad/ad.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace pycppad
1515

1616
template<typename Scalar>
1717
class ADVisitor
18-
: public bp::def_visitor< ADVisitor<Scalar> >
18+
: public bp::def_visitor< ADVisitor<Scalar> >
1919
{
20-
typedef ::CppAD::AD<Scalar> AD;
2120
public:
21+
typedef ::CppAD::AD<Scalar> AD;
2222

2323
template<class PyClass>
2424
void visit(PyClass& cl) const
@@ -43,6 +43,7 @@ namespace pycppad
4343
#pragma GCC diagnostic pop
4444
#endif
4545
.def(bp::self *= bp::self)
46+
4647
.def("abs_me", &AD::abs_me, bp::arg("self"))
4748
.def("acos_me", &AD::acos_me, bp::arg("self"))
4849
.def("asin_me", &AD::asin_me, bp::arg("self"))
@@ -64,6 +65,7 @@ namespace pycppad
6465
.def("erf_me", &AD::erf_me, bp::args("self","complement"))
6566
.def("expm1_me", &AD::expm1_me, bp::arg("self"))
6667
.def("log1p_me", &AD::log1p_me, bp::arg("self"))
68+
6769
.def("__str__",&print)
6870
.def("__repr__",&print)
6971

@@ -111,8 +113,8 @@ namespace pycppad
111113
.def(ADVisitor<Scalar>());
112114

113115
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");
116118

117119
eigenpy::registerNewType<AD>();
118120
eigenpy::registerCommonUfunc<AD>();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy