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

Function _pairs_add

numpy/f2py/symbolic.py:136–146  ·  view source on GitHub ↗
(d, k, v)

Source from the content-addressed store, hash-verified

134
135
136def _pairs_add(d, k, v):
137 # Internal utility method for updating terms and factors data.
138 c = d.get(k)
139 if c is None:
140 d[k] = v
141 else:
142 c = c + v
143 if c:
144 d[k] = c
145 else:
146 del d[k]
147
148
149class ExprWarning(UserWarning):

Callers 3

__add__Method · 0.85
__mul__Method · 0.85
normalizeFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…