Tom de Geus

Results 106 issues of Tom de Geus

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

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() =...

Fixes https://github.com/xtensor-stack/xtensor/issues/2550

# Checklist - [ ] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. -...

It might be worth to have set of tests for which we use the preprocessor to run them on xarray, xtensor, xtensor_fixed, pyarray, pytensor, ... This should reveal minor issues...

Has the time come that we should make the change `master` -> `main`? It's starting to become one a few projects I participate on that is still on `master`

In some cases it would be great to have features like `push_back` and `insert` for a 1-d container (like `std::vector`)

Feature Request