MCPcopy Index your code
hub / github.com/numpy/numpy / _sub

Function _sub

numpy/polynomial/polyutils.py:568–579  ·  view source on GitHub ↗

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

(c1, c2)

Source from the content-addressed store, hash-verified

566
567
568def _sub(c1, c2):
569 """ Helper function used to implement the ``<type>sub`` functions. """
570 # c1, c2 are trimmed copies
571 [c1, c2] = as_series([c1, c2])
572 if len(c1) > len(c2):
573 c1[:c2.size] -= c2
574 ret = c1
575 else:
576 c2 = -c2
577 c2[:c1.size] += c1
578 ret = c2
579 return trimseq(ret)
580
581
582def _fit(vander_f, x, y, deg, rcond=None, full=False, w=None):

Callers

nothing calls this directly

Calls 2

as_seriesFunction · 0.85
trimseqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…