xtl icon indicating copy to clipboard operation
xtl copied to clipboard

The x template library

Results 26 xtl issues
Sort by recently updated
recently updated
newest added

This fixes a bug in xtensor, when assigning to xmasked_view with `xt::noalias` wouldn't compile: ```cpp xarray data = {{ 1.,-2., 3.}, { 4., 5.,-6.}, { 7., 8.,-9.}}; xarray data2 =...

I'm getting ``` C:/Users/runneradmin/micromamba/envs/myenv/Library/include/xtl/xspan_impl.hpp:483:18: error: '_snprintf' is not a member of 'std' std::snprintf(msgbuf, sizeof(msgbuf), ^~~~~~~~ ``` here https://github.com/xtensor-stack/xtensor-python/pull/274 Possible references: * https://github.com/nlohmann/json/issues/1408

It's as simple as doing: `xt::all() == xt::all()` ``` experimental/users/jblespiau/tensorfn/pybind11/pmap_function.cc:72:30: error: invalid operands to binary expression ('xt::xall_tag' and 'xt::xall_tag') bool c = xt::all() == xt::all(); ~~~~~~~~~ ^ ~~~~~~~~~ ./third_party/xtensor/xutils.hpp:737:17: note:...

clang-12 fails to compile it: ``` FAILED: test/test_xiterator_base : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong test/CMakeFiles/test_xiterator_base.dir/main.cpp.o test/CMakeFiles/test_xiterator_base.dir/test_xiterator_base.cpp.o -o test/test_xiterator_base -pthread &&...

The current implementation of `xtl::xcomplex` prevents to `reinterpret_cast` it into an array of the underlying `value_type`, like one can do with `std::complex` (see http://eel.is/c++draft/complex.numbers.general). This is because `xtl::complex` stores the...

The base directory for cmake and pkgconfig files is CMAKE_INSTALL_DATAROOTDIR which is set by default to /usr/share on linux. The documentation says that it is better to use GNUInstallDirs instead....

Let's say we have two thread writing values into a dynamic bitset. If the thread tries to change bits stored in the same underlying integer, we may have a race...

clang-10 prints this: ``` In file included from include/xtl/xspan.hpp:13: include/xtl/xspan_impl.hpp:312:35: warning: implicit conversion changes signedness: 'const std::ptrdiff_t' (aka 'const long') to 'unsigned long' [-Wsign-conversion] TCB_SPAN_EXPECT(extent == dynamic_extent || count ==...

When compiling using C++17 on linux/clang I get the following compiler error: ``` In file included from /home/travis/build/tdegeus/GMatElastoPlasticQPot/test/Cartesian2d.cpp:3: 826In file included from /home/travis/miniconda/include/xtensor/xrandom.hpp:21: 827In file included from /home/travis/miniconda/include/xtensor/xbuilder.hpp:32: 828In file...

It appears that `std::tuple_size` is predefined here: https://github.com/xtensor-stack/xtl/blob/86d8071ff347450e7394eb958fd9bb9f2ede92b4/include/xtl/xspan_impl.hpp#L763 However, some compilers (e.g. linux/clang6.0) seem to define it as `struct` not a class: ``` In file included from /home/travis/miniconda/include/xtl/xspan.hpp:13: 864/home/travis/miniconda/include/xtl/xspan_impl.hpp:763:1: warning:...