Skip to content

Commit

Permalink
Fix division
Browse files Browse the repository at this point in the history
  • Loading branch information
duembgen committed Dec 30, 2023
1 parent 7910a28 commit eb471e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poly_matrix/poly_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ def __add__(self, other, inplace=False):
def __sub__(self, other):
return self + (other * (-1))

def __div__(self, scalar):
"""overload M / a, for some reason this has no effect"""
def __truediv__(self, scalar):
"""overload M / a"""
return self * (1 / scalar)

def __rmul__(self, scalar, inplace=False):
Expand Down

0 comments on commit eb471e1

Please sign in to comment.