xtensor-stack / xtensor-python

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

support numpy>2.0? #308

Open nbecker opened 4 months ago

nbecker commented 4 months ago

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

nbecker commented 1 month ago

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)

jakirkham commented 1 month ago

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