xtensor-stack / xtensor-python

Python bindings for xtensor
BSD 3-Clause "New" or "Revised" License
347 stars 58 forks source link

Fix resize #132

Closed wolfv closed 6 years ago

wolfv commented 6 years ago

This also modifies reshape in such a way that reshape always keeps the original numpy buffer (and calls the underlying C API for the actual reshape).

wolfv commented 6 years ago

please don't merge, need to fix adapting the strides after modification.

wolfv commented 6 years ago

I'm pretty sure the memory management should be handled differently. lets discuss on monday.

https://github.com/wolfv/xtensor-python/blob/35f6f08e0468f1508a01e064a426b6b6d77a1ed3/include/xtensor-python/pycontainer.hpp#L350-L352