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

Method alignment

include/pybind11/numpy.h:952–957  ·  view source on GitHub ↗

Alignment of the data type

Source from the content-addressed store, hash-verified

950
951 /// Alignment of the data type
952 ssize_t alignment() const {
953 if (detail::npy_api::get().PyArray_RUNTIME_VERSION_ < 0x12) {
954 return detail::array_descriptor1_proxy(m_ptr)->alignment;
955 }
956 return detail::array_descriptor2_proxy(m_ptr)->alignment;
957 }
958
959 /// Flags for the array descriptor
960 std::uint64_t flags() const {

Callers 1

TEST_SUBMODULEFunction · 0.80

Calls 3

getFunction · 0.85
array_descriptor1_proxyFunction · 0.85
array_descriptor2_proxyFunction · 0.85

Tested by 1

TEST_SUBMODULEFunction · 0.64