xtensor-python icon indicating copy to clipboard operation
xtensor-python copied to clipboard

support numpy>2.0?

Open nbecker opened this issue 1 year ago • 2 comments

Haven't tried it, but I'm assuming changes will be needed for numpy > 2.0 API?

nbecker avatar Mar 18 '24 11:03 nbecker

I have built all of my code examples against numpy-2.0.0 + xtensor-python-0.26.1 and everything builds and seems to run (I don't really have a test suite)

nbecker avatar Jun 24 '24 17:06 nbecker

Skimming the code it looks like NumPy is mainly used via pybind11

Starting with pybind11 2.12.0, it supports NumPy 2: https://github.com/pybind/pybind11/issues/5009

So it does seem probable that things would just work. Though haven't dug any deeper

jakirkham avatar Jun 27 '24 08:06 jakirkham