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

Method __complex__

numpy/lib/_user_array_impl.py:216–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 "only rank-0 arrays can be converted to Python scalars.")
215
216 def __complex__(self):
217 return self._scalarfunc(complex)
218
219 def __float__(self):
220 return self._scalarfunc(float)

Callers

nothing calls this directly

Calls 1

_scalarfuncMethod · 0.95

Tested by

no test coverage detected