Skip to content

Commit

Permalink
self replacing x/a in modf and round
Browse files Browse the repository at this point in the history
  • Loading branch information
coquelin77 committed Dec 6, 2019
1 parent cfa1f74 commit 2b52855
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions heat/core/dndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ def __mod__(self, other):
"""
return arithmetics.mod(self, other)

def modf(a, out=None):
def modf(self, out=None):
"""
Return the fractional and integral parts of an array, element-wise.
The fractional and integral parts are negative if the given number is negative.
Expand All @@ -1918,7 +1918,7 @@ def modf(a, out=None):
Integral part of x. This is a scalar if x is a scalar.
"""

return rounding.modf(a, out)
return rounding.modf(self, out)

def __mul__(self, other):
"""
Expand Down Expand Up @@ -2306,7 +2306,7 @@ def __rmod__(self, other):
"""
return arithmetics.mod(other, self)

def round(x, decimals=0, out=None, dtype=None):
def round(self, decimals=0, out=None, dtype=None):
"""
Calculate the rounded value element-wise.
Expand All @@ -2330,7 +2330,7 @@ def round(x, decimals=0, out=None, dtype=None):
rounded_values : ht.DNDarray
A tensor containing the rounded value of each element in x.
"""
return rounding.round(x, decimals, out, dtype)
return rounding.round(self, decimals, out, dtype)

def __rpow__(self, other):
"""
Expand Down

0 comments on commit 2b52855

Please sign in to comment.