xtensor
xtensor copied to clipboard
C++ tensors with broadcasting and lazy computing
This change is required for my system to run cmake. I run Ubuntu 20.04.2 LTS and cmake version 3.16.3. # Checklist - [ ] The title and commit message(s) are...
A build of xtensor 0.23.10 is failing on i386 (i686) when xsimd support is activated (xsimd 7.5.0). An excerpt from the build log is ``` [ 4%] Building CXX object...
xtensor tests fail on less common machine architectures, including i386, mipsel, s390x, and others. Build logs can be found at https://buildd.debian.org/status/package.php?p=xtensor&suite=experimental There seem to be two separate sets of failures....
A build of xtensor 0.23.10 with xsimd support on arm64 fails with this error: ``` [ 4%] Building CXX object test/CMakeFiles/test_xtensor_lib.dir/test_xadaptor_semantic.cpp.o cd //obj-aarch64-linux-gnu/test && /usr/bin/c++ -DXSIMD_ENABLE_XTL_COMPLEX -DXTENSOR_USE_XSIMD -I//include -isystem //obj-aarch64-linux-gnu/test/googletest-src/googletest/include...
Casting implicitly strided_view into xarray results in a 'Segmentation fault'. How can correctly convert strided_view into xarray?
# Description This PR is a showcase for issue #2228. If the issue is valid and relevant, this PR may be considered for reproducing the problem. Otherwise please feel free...
This article https://romanpoya.medium.com/a-look-at-the-performance-of-expression-templates-in-c-eigen-vs-blaze-vs-fastor-vs-armadillo-vs-2474ed38d982 shows more than order of magnitude slower performance of xtensor compared to Eigen, Blaze and Fastor. It seems to be caused by `xt::linalg::norm()`. Can the code they...
This code runs 5-10x times faster with raw unchecked indexing on all dimensions ```cpp using T = float; using Tensor = xt::xarray; auto start_line_points = xt::view(batch_of_lines, xt::all(), xt::range(_, -1)); auto...
If forced to follow C++20 standard by `-std=c++20`, g++ and clang++ both complain about ambiguous (misleading overload) of `to_array(indices)` at xtensor/xindex_view.hpp:761:46. ```c++ template inline auto index_view(E&& e, const xindex (&indices)[L])...
The following code ``` #include #include #include #include int main(int argc, char** argv){ ulong u = 10; ulong v = 5; xt::xarray::shape_type shape = {u,v}; auto test = xt::zeros(shape); std::cout