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

Function as_integer

numpy/f2py/symbolic.py:962–970  ·  view source on GitHub ↗

Return object as INTEGER constant.

(obj, kind=4)

Source from the content-addressed store, hash-verified

960
961
962def as_integer(obj, kind=4):
963 """Return object as INTEGER constant.
964 """
965 if isinstance(obj, int):
966 return Expr(Op.INTEGER, (obj, kind))
967 if isinstance(obj, Expr):
968 if obj.op is Op.INTEGER:
969 return obj
970 raise OpError(f'cannot convert {obj} to INTEGER constant')
971
972
973def as_real(obj, kind=4):

Callers 3

as_termsFunction · 0.85
as_term_coeffFunction · 0.85
processMethod · 0.85

Calls 2

ExprClass · 0.85
OpErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…