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

Method __mul__

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

Source from the content-addressed store, hash-verified

1332 return self
1333
1334 def __mul__(self, other):
1335 if isscalar(other):
1336 return poly1d(self.coeffs * other)
1337 else:
1338 other = poly1d(other)
1339 return poly1d(polymul(self.coeffs, other.coeffs))
1340
1341 def __rmul__(self, other):
1342 if isscalar(other):

Callers

nothing calls this directly

Calls 3

isscalarFunction · 0.90
poly1dClass · 0.85
polymulFunction · 0.70

Tested by

no test coverage detected