xtensor-python
xtensor-python copied to clipboard
Python bindings for xtensor
This section should describe the best practices when functions need to be exposed to both C++ (operating on `xtensor / xarray`) and Python (operating on `pytensor / pyarray`)
- Set up Azure pipeline to test clang-cl - Fix various `CMakeLists.txt` for new compiler. This is the [Azure build log](https://dev.azure.com/robertodr/xtensor-python/_build/results?buildId=100) You'll need an Azure free account and set up...
We could add a macro that automatically does the following, so that users don't forget to do `xt::import_numpy()` which results in weird segfaults. ``` PYBIND11_MODULE(mymodule, m) { xt::import_numpy(); } ```
Currently, the strides adapter doesn't set a stride to zero if the shape in that dimension is `==1`. This leads to bugs when accessing elements of broadcasted xfunctions using explicit...
I was trying to get an array view from cpp and call a python function back with it. After some help, I managed to do it by converting the view...
When we have a function taking a pyarray but pass in a numpy array of integers, the numpy array is implicitly converted to a pyarray of doubles (but this creates...
I'm attempting to bind a `xt::pyarray` to a Numpy array of arrays, but I am getting compilation errors instantiating the `pyarray`. The error is a bit long to include here,...
Hi, we should improve the way we are currently looking for xtensor-python dependencies: ```cmake find_package(xtl REQUIRED) message(STATUS "Found xtl: ${xtl_INCLUDE_DIRS}/xtl") find_package(xtensor REQUIRED) message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor") find_package(pybind11 REQUIRED) message(STATUS "Found...
This would avoid the need to call pybind11 API in the type_caster.
This would be really helpful with the testing of xtensor-python.