MCPcopy
hub / github.com/numpy/numpy / __rmul__

Method __rmul__

numpy/lib/_polynomial_impl.py:1360–1365  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1358 return poly1d(polymul(self.coeffs, other.coeffs))
1359
1360 def __rmul__(self, other):
1361 if isscalar(other):
1362 return poly1d(other * self.coeffs)
1363 else:
1364 other = poly1d(other)
1365 return poly1d(polymul(self.coeffs, other.coeffs))
1366
1367 def __add__(self, other):
1368 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