MCPcopy Create free account
hub / github.com/numpy/numpy / __rmul__

Method __rmul__

numpy/lib/polynomial.py:1341–1346  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1339 return poly1d(polymul(self.coeffs, other.coeffs))
1340
1341 def __rmul__(self, other):
1342 if isscalar(other):
1343 return poly1d(other * self.coeffs)
1344 else:
1345 other = poly1d(other)
1346 return poly1d(polymul(self.coeffs, other.coeffs))
1347
1348 def __add__(self, other):
1349 other = poly1d(other)

Callers

nothing calls this directly

Calls 3

isscalarFunction · 0.90
poly1dClass · 0.85
polymulFunction · 0.70

Tested by

no test coverage detected