Skip to content

Commit

Permalink
release 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanonymous-GitHub committed Jun 11, 2020
1 parent 0c2a0dc commit d2d2084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="xmatrix",
version="1.4.1",
version="1.4.2",
author="Xanonymous",
author_email="[email protected]",
description="Help you calculate matrix.",
Expand Down
2 changes: 1 addition & 1 deletion xmatrix/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __sub__(self, other):

# Matrix multiplication
def __mul__(self, other):
if isinstance(other, int):
if isinstance(other, int) or isinstance(other, float) or isinstance(other, complex):
# method accept single integer to be calculated.
new = self.__make_copy(self.__storage)
return Matrix(self.__rate(new, other))
Expand Down

0 comments on commit d2d2084

Please sign in to comment.