xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

C++ tensors with broadcasting and lazy computing

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

Maybe it's possible to do an empty implementation like the following: ```cpp empty({_3, _2, _5}); ``` by using compile time integer placeholders (http://en.cppreference.com/w/cpp/utility/functional/placeholders) Or if that doesn't work, we could...

C++17

Hi @JohanMabille , thanks for this project! I encounter a C4996 MSVC compiler warning using `xtensor` with cmake `CMAKE_CXX_STANDARD 17` flag set. This minimal code ``` cpp #include "xtensor/xtensor.hpp" void...

Enhancement
C++17

I found a strange asymmetry while playing with 3d xarrays and views on such arrays. Maybe I misunderstood the way `xt::view` works. Any hint on what happened is very appreciated....

Bug
xt::view

Hey there, I've recently started using xtensor in one of my personal projects and was a bit surprised that I was not able to find a linear interpolation function. There...

Enhancement
Help wanted
C++20

I have found an issue on `xt::xtensor_fixed` with some versions of the intel compiler `icpc` with `-std=c++17` flag, which I suspect is a compiler bug. I confirmed the issue is...

C++17

``` using tensor_type_row = xt::xtensor; using tensor_type_col = xt::xtensor; auto tmp_a = tensor_type_col({200, 512, 512, 5}); tensor_type_col tmp_b; tmp_b = xt::view(tmp_a, xt::all(), xt::all(), xt::all(), xt::range(1, 2)); ``` this demo code...

Performance

axis slice iterator is broken when used with xtensors ([godbolt](https://godbolt.org/z/hYszz9YdP)) and axis_iterator simply does not compile. This issue for both cases is that the strides_type and shape_type in axis_slice_iterator and...

# 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...

In general shrinking with resize of `xt::xtensor` does preserve elements. It would be nice to have the option to do so (if the underlying container allows it. E.g. ```cpp xt::xtensor...

Enhancement
Help wanted

This PR partially addresses #2707. When using XSimd, the following code will compile, however, the resulting code is inefficient if the return type of `operator|(const char&, const char&)` is `int`...

Needs review