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

Method __complex__

numpy/lib/user_array.py:189–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 "only rank-0 arrays can be converted to Python scalars.")
188
189 def __complex__(self):
190 return self._scalarfunc(complex)
191
192 def __float__(self):
193 return self._scalarfunc(float)

Callers

nothing calls this directly

Calls 1

_scalarfuncMethod · 0.95

Tested by

no test coverage detected