Skip to content

Commit

Permalink
removing rmul and rdiv
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlia-Chehata committed Jul 1, 2020
1 parent 130bf68 commit 408cad9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cupy/lib/polynomial.pyx
Expand Up @@ -117,12 +117,6 @@ cdef class poly1d:
return poly1d(self.coeffs * other)
raise NotImplementedError

# TODO(Dahlia-Chehata): use polymul for non-scalars
def __rmul__(self, other):
if cupy.isscalar(other):
return poly1d(other * self.coeffs)
raise NotImplementedError

# TODO(Dahlia-Chehata): implement using polyadd
def __add__(self, other):
raise NotImplementedError
Expand Down Expand Up @@ -151,12 +145,6 @@ cdef class poly1d:
return poly1d(self.coeffs / other)
raise NotImplementedError

# TODO(Dahlia-Chehata): use polydiv for non-scalars
def __rtruediv__(self, other):
if cupy.isscalar(other):
return poly1d(other / self.coeffs)
raise NotImplementedError

def __eq__(self, other):
if not isinstance(other, poly1d):
raise NotImplementedError
Expand Down

0 comments on commit 408cad9

Please sign in to comment.