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

Method __new__

numpy/core/tests/test_umath.py:3033–3034  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3031 __array_priority__ = 10
3032
3033 def __new__(cls):
3034 return np.asarray(1.0, 'float64').view(cls).copy()
3035
3036 a = A()
3037 x = np.float64(1)*a

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected