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

Function _add

numpy/polynomial/polyutils.py:572–582  ·  view source on GitHub ↗

Helper function used to implement the `` add`` functions.

(c1, c2)

Source from the content-addressed store, hash-verified

570
571
572def _add(c1, c2):
573 """ Helper function used to implement the ``<type>add`` functions. """
574 # c1, c2 are trimmed copies
575 [c1, c2] = as_series([c1, c2])
576 if len(c1) > len(c2):
577 c1[:c2.size] += c2
578 ret = c1
579 else:
580 c2[:c1.size] += c1
581 ret = c2
582 return trimseq(ret)
583
584
585def _sub(c1, c2):

Callers

nothing calls this directly

Calls 2

as_seriesFunction · 0.85
trimseqFunction · 0.85

Tested by

no test coverage detected