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

Function flags2names

numpy/f2py/tests/test_array_from_pyobj.py:54–74  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

52
53
54def flags2names(flags):
55 info = []
56 for flagname in [
57 "CONTIGUOUS",
58 "FORTRAN",
59 "OWNDATA",
60 "ENSURECOPY",
61 "ENSUREARRAY",
62 "ALIGNED",
63 "NOTSWAPPED",
64 "WRITEABLE",
65 "WRITEBACKIFCOPY",
66 "UPDATEIFCOPY",
67 "BEHAVED",
68 "BEHAVED_RO",
69 "CARRAY",
70 "FARRAY",
71 ]:
72 if abs(flags) & getattr(wrap, flagname, 0):
73 info.append(flagname)
74 return info
75
76
77class Intent:

Callers 2

flags_infoFunction · 0.85
__init__Method · 0.85

Calls 1

absFunction · 0.85

Tested by

no test coverage detected