MCPcopy Create free account
hub / github.com/pybind/pybind11 / flags

Method flags

include/pybind11/numpy.h:960–965  ·  view source on GitHub ↗

Flags for the array descriptor

Source from the content-addressed store, hash-verified

958
959 /// Flags for the array descriptor
960 std::uint64_t flags() const {
961 if (detail::npy_api::get().PyArray_RUNTIME_VERSION_ < 0x12) {
962 return (unsigned char) detail::array_descriptor1_proxy(m_ptr)->flags;
963 }
964 return detail::array_descriptor2_proxy(m_ptr)->flags;
965 }
966
967private:
968 static object &_dtype_from_pep3118() {

Callers 3

TEST_SUBMODULEFunction · 0.45
arrayMethod · 0.45
loadMethod · 0.45

Calls 3

getFunction · 0.85
array_descriptor1_proxyFunction · 0.85
array_descriptor2_proxyFunction · 0.85

Tested by 1

TEST_SUBMODULEFunction · 0.36