(m);// release the reference which was owned by the guard
}
// returns a NEW python ref either to the numpy or to the guard.
// if the guard does not yet exists, create it.
PyObject * new_python_ref() {
// if we just have a borrowed numpy, just return a new ref to it
if (py_numpy) { Py_INCREF(py_numpy); return py_numpy;}
// if the guard is already set, then return it, otherwise create it...
if (py_guard) { Py_INCREF(py_guard); return py_guard;}
else {
TRACE_MEM_DEBUG(" activating python guard for C++ block"<
void load(Archive & ar, const unsigned int version) {
ar >> size_;
assert (p==nullptr);
p = new ValueType[size_];
for (size_t i=0; i> p[i];
}
BOOST_SERIALIZATION_SPLIT_MEMBER();
};
}}}//namespace triqs::arrays
#undef TRACE_MEM_DEBUG
#endif