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

In window, if you defined XTENSOR_USE_XSIMD, you must also specify which instruction set you target: target_compile_options(target_name PRIVATE /arch:AVX2) # OR target_compile_options(target_name PRIVATE /arch:AVX) # OR target_compile_options(target_name PRIVATE /arch:ARMv7VE) I suggest...

Hello, during my experiments, I discover a performance drop for the `xt::pow` function. Here are my experiments: ```c++ #include #include #include #define ANKERL_NANOBENCH_IMPLEMENT #include using namespace ankerl::nanobench; int main() {...

This code for norm_sq should return a vector, but instead returns a scalar: the 1st element of the vector -----bug.cc ```cpp #define FORCE_IMPORT_ARRAY #define _GNU_SOURCE #define HAVE_CBLAS 1 #include #include...

**Environment:** xtensor: 0.21.5 compiler: gcc 12.2.1 OS: Fedora 36 **Problem:** Given the following code: ```cpp xt::xtensor vec1{0,1,2,3,4,5}; xt::xtensor vec2 = view(vec1, xt::drop(2,0)); ``` I would expect `vec2` to contain `{1,3,4,5}`,...

Hi All, I am converting some python numpy code into cpp code using xtensor library. Pretty much things I understood but I am having some issues in indexing based operations....

Hi, I need to take views of views, and views of views of views, and so on. This leads to a template explosion since the datatype of, e.g., `xt::strided_view(array, ...)`...

I am keeping the default gcc-7.5 on ubuntu 18.04. No upgrade gcc, anyone have ideas to compile successfully. Thanks

Needs clarification
Stale

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

GCC 13 may give warnings like: ``` /home/maik/scratch/schaap/everybeam/include/xtensor/xutils.hpp:33:6: error: "_MSC_VER" is not defined, evaluates to 0 [-Werror=undef] 33 | #if (_MSC_VER >= 1910) | ^~~~~~~~ In file included from /home/maik/scratch/schaap/everybeam/include/xtensor/xcontainer.hpp:25,...

Hi, I believe my issue is similar to https://github.com/xtensor-stack/xtensor/issues/600, but that issue is 7 years old and the solution no longer applies. I have a thin abstraction layer in my...