Skip to content

Commit ff13e83

Browse files
committed
Fix inconsistency
1 parent 19ad724 commit ff13e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyadjoint/adjfloat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ def _ad_restore_at_checkpoint(self, checkpoint):
297297
return checkpoint
298298

299299
def _ad_mul(self, other):
300-
return self * other
300+
return super().__mul__(other)
301301

302302
def _ad_add(self, other):
303-
return self + other
303+
return super().__add__(other)
304304

305305
def _ad_dot(self, other):
306306
return super().__mul__(other)

0 commit comments

Comments
 (0)