xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

C++ tensors with broadcasting and lazy computing

Results 220 xtensor issues
Sort by recently updated
recently updated
newest added

Assigning on axis_slice_range (and axis_range) does not work as expected, unless the range is contiguous in memory. The code ```cpp xt::xarray data = xt::empty({2,3}); float test = 2.0f; for (auto...

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

I'm wondering if there is an easy way to select specific columns (or rows, tubes, etc.) using a boolean mask. In matlab it looks like ``` Z = rand(N,K) >...

This issue tracks the benefits of migrating the codebase to C++17, and its consequences. First we would have to drop the support for the following compilers: - gcc 4.9, 5,...

C++17

Currently, `xt::concatenate` takes `xt::tuple` as its first argument which means that the number of input arrays to `xt::concatenate` has to be specified during the compile time. Would it be possible...

Feature Request

## code ```c++ xt::xarray a = {{1, 5, 3}, {4, 5, 6}}; xt::xarray mask = {{true, false, false}, {false, true, false}}; auto m = xt::masked_view(a, mask); // => m =...

Bug

Are keep and drop for dynamic views in the roadmap?

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 c++20 `std::allocator::reference` was removed, but the `xt::tracking_allocator` uses it with `using reference = typename A::reference;` which results in error: ```cpp .../xtensor/xutils.hpp:731:39: error: no type named 'reference' in 'std::allocator' using...