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

Method test_flatiter__array__

numpy/core/tests/test_multiarray.py:9344–9349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9342 [ 10, -10, 10]]))
9343
9344 def test_flatiter__array__(self):
9345 a = np.arange(9).reshape(3,3)
9346 b = a.T.flat
9347 c = b.__array__()
9348 # triggers the WRITEBACKIFCOPY resolution, assuming refcount semantics
9349 del c
9350
9351 def test_dot_out(self):
9352 # if HAVE_CBLAS, will use WRITEBACKIFCOPY

Callers

nothing calls this directly

Calls 2

reshapeMethod · 0.80
__array__Method · 0.45

Tested by

no test coverage detected