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

Python bindings for xtensor

Results 48 xtensor-python issues
Sort by recently updated
recently updated
newest added

This highlights: - [ ] `'_snprintf': is not a member of 'std'`, see https://github.com/nlohmann/json/issues/1408

See https://github.com/tdegeus/test_pybind/pull/6 and an attempt to reproduce https://github.com/xtensor-stack/xtensor-python/pull/274

First it failed like this: ``` In file included from /usr/local/include/pybind11/pytypes.h:12: /usr/local/include/pybind11/detail/common.h:186:10: fatal error: 'Python.h' file not found #include ^~~~~~~~~~ ``` then it failed like this: ``` In file included...

With `xt::pyarray` I'm getting a bit of a, to me, sketchy error: ``` In file included from /Users/tdegeus/data/prog/src/GooseFEM/python/main.cpp:12: In file included from /Users/tdegeus/opt/miniconda3/envs/stable/include/xtensor-python/pyarray.hpp:17: In file included from /Users/tdegeus/opt/miniconda3/envs/stable/include/xtensor/xbuffer_adaptor.hpp:22: In file...

Sometimes my API simply does not permit easily to template, or I just want to wrap quick and dirty, or on needs to work around a bug. For these case...

The following code ```cpp #include #include namespace py = pybind11; #define FORCE_IMPORT_ARRAY #include #include template inline auto foo(const T& arg) { return xt::sort(arg); } PYBIND11_MODULE(mymodule, m) { xt::import_numpy(); m.doc() =...

This is a question/idea concerning the xtensor/python wrapping. I was wondering if the following way I'm currently interfacing `xt::xarray` to numpy arrays in python is somehow valid and not an...

The unittest with TBB failed on my laptop. As a first step, I added it into the CI to see whether it works or not.