Skip to content

Commit

Permalink
Update div definitions for newer python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cklb committed May 22, 2023
1 parent 42edb12 commit 7b0078e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ADOL-C/swig/adolc-python.i
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,16 @@ FatalError = _adolc.FatalError
adub* __mul__ (const pdouble& a) {
return (adub*) ((*($self)) * a);
}
adub* __div__ (const badouble& a) {
adub* __truediv__ (const badouble& a) {
return (adub*) ((*($self)) / a);
}
adub* __div__ (double a) {
adub* __truediv__ (double a) {
return (adub*) ((*($self)) / a);
}
adub* __rdiv__ (double a) {
adub* __rtruediv__ (double a) {
return (adub*) (a / (*($self)));
}
adub* __div__ (const pdouble& a) {
adub* __truediv__ (const pdouble& a) {
return (adub*) ((*($self)) / a);
}
adub* sin() {
Expand Down Expand Up @@ -544,13 +544,13 @@ FatalError = _adolc.FatalError
adub* __rmul__ (double a) {
return (adub*) (a * (*($self)));
}
adub* __div__ (const badouble& a) {
adub* __truediv__ (const badouble& a) {
return (adub*) ((*($self)) / a);
}
adub* __div__ (double a) {
adub* __truediv__ (double a) {
return (adub*) ((*($self)) / a);
}
adub* __rdiv__ (double a) {
adub* __rtruediv__ (double a) {
return (adub*) (a / (*($self)));
}
adub* sin() {
Expand Down

0 comments on commit 7b0078e

Please sign in to comment.