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

Method writeable

include/pybind11/numpy.h:1187–1189  ·  view source on GitHub ↗

If set, the array is writeable (otherwise the buffer is read-only)

Source from the content-addressed store, hash-verified

1185
1186 /// If set, the array is writeable (otherwise the buffer is read-only)
1187 bool writeable() const {
1188 return detail::check_flags(m_ptr, detail::npy_api::NPY_ARRAY_WRITEABLE_);
1189 }
1190
1191 /// If set, the array owns the data (will be freed when the array is deleted)
1192 bool owndata() const {

Callers 4

test_array_attributesFunction · 0.80
TEST_SUBMODULEFunction · 0.80
loadMethod · 0.80
loadMethod · 0.80

Calls 1

check_flagsFunction · 0.85

Tested by 2

test_array_attributesFunction · 0.64
TEST_SUBMODULEFunction · 0.64