I have an existing pybind11::array_t
, and need to do a copy-construction. Is there a function inside pybind11
that allows me to do a deep copy of an array_t
?
I know that I could create a new array_t
, size it properly, and then copy the original data into it, but was wondering if there exists already a method to do this that hides these passages.