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

Function _ensure_exprdict

numpy/f2py/crackfortran.py:3213–3222  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

3211
3212
3213def _ensure_exprdict(r):
3214 if isinstance(r, int):
3215 return {'typespec': 'integer'}
3216 if isinstance(r, float):
3217 return {'typespec': 'real'}
3218 if isinstance(r, complex):
3219 return {'typespec': 'complex'}
3220 if isinstance(r, dict):
3221 return r
3222 raise AssertionError(repr(r))
3223
3224
3225def determineexprtype(expr, vars, rules={}):

Callers 1

determineexprtypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected