xtensor-python
xtensor-python copied to clipboard
Python bindings for xtensor
I have some issues compiling python bindings for my project involving xtensor. My CMakeList.txt looks like this ```CMake cmake_minimum_required(VERSION 3.13 FATAL_ERROR) project(XTensorPythonTest LANGUAGES CXX) set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) SET(CMAKE_CXX_STANDARD 17) SET(CMAKE_CXX_STANDARD_REQUIRED...
Installs headers via pip. Suitable for rapidly writing packages. Modified from the pybind11. Xtensor itself should be packaged and dded as a dependency too.
The following argument can be passed to cmake in order to fix wrong python detection: `-DPYTHON_EXECUTABLE:FILEPATH=path_to_python`. I guess it is equivalent to -DPYTHON_EXECUTABLE=\`which python\` but I'm not sure. This should...
The website listed in the repo description (http://quantstack.net/xtensor-python) throws a 404 error.
maybe it's impossible...
Hello, I wonder if there is a reason why the `xtensor_type_caster_base` uses `xt::xtensor` for the signature https://github.com/xtensor-stack/xtensor-python/blob/719b9d13566122c7d63d04ff2394644af35a27ba/include/xtensor-python/xtensor_type_caster_base.hpp#L161 instead of using `numpy.ndarray[...]` https://github.com/xtensor-stack/xtensor-python/blob/719b9d13566122c7d63d04ff2394644af35a27ba/include/xtensor-python/pyarray.hpp#L72 In my opinion, using the Numpy name is...
Hi, currently xtensor python brings seamless integration of `xarray` and `xtensor` types with numpy. However `xtensor_fixed` type is not supported. Hence the following definitions work (with `m` an instance of...
We need ot add a test that passes a 0-D array to a function expecting a pyarray object to check that everything is fine with #222
Currently `pyarray` and `pytensor` constructors can throw exceptions when constructed from a `pyobject` (in case of bad layout or incorrect dimension for `pytensor`). This can stop pybind11 overload resolution mechanism,...
In Python I have a 3D numpy array which is a stack of image data and I would like to calculate `nanmean`. I tried two different ways using xtensor-python: ```cpp...