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

Method generate_all_false

numpy/core/tests/test_numeric.py:3443–3452  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

3441 'O', 'OWNDATA']
3442
3443 def generate_all_false(self, dtype):
3444 arr = np.zeros((2, 2), [('junk', 'i1'), ('a', dtype)])
3445 arr.setflags(write=False)
3446 a = arr['a']
3447 assert_(not a.flags['C'])
3448 assert_(not a.flags['F'])
3449 assert_(not a.flags['O'])
3450 assert_(not a.flags['W'])
3451 assert_(not a.flags['A'])
3452 return a
3453
3454 def set_and_check_flag(self, flag, dtype, arr):
3455 if dtype is None:

Callers 3

test_require_eachMethod · 0.95
test_C_and_F_simulMethod · 0.95

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected