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

See #1280.

Needs review

```cpp #include #include #include #include #include #include #include #include #include // ------------------------------------------------------------------------------------------------- using T2s = xt::xtensor_fixed; // ------------------------------------------------------------------------------------------------- template inline double trace(const T &A) { return A(0,0) + A(1,1); }...

Bug
Help wanted

It would be cool if the following would work: ```cpp #include #include #include int main() { xt::xarray A; for ( size_t i = 0 ; i < 3 ; ++i...

Feature Request
Help wanted

(Posting as reminder for now, will add a minimal reproducer later). Calling a code ``` class Foo { private: xt::pytensor m_bar; public: Foo(const xt::pytensor& bar) { m_bar = bar; }...

Discussion

Hey, I have tested some code with xt::mean, and find it very slow than numpy with hundreds of times difference. The data is a 2-d array. xtensor version ``` xt::pyarray...

Performance

I'm not sure what was the status when #1692 was resolved, but currently: ```cmake set(XTENSOR_USE_XSIMD "" CACHE BOOL ON) add_subdirectory(xtl) add_subdirectory(xsimd) add_subdirectory(xtensor) (...) add_library(foo) target_link_libraries(xtensor xtensor::optimize xtensor::use_simd) ``` fails with:...

Enhancement
Help wanted

When using xt::where with xtensor types that have complex values, GCC gives this error: `no matching function for call to ‘select(const bool&, const std::complex&, const std::complex&)’`. The error occurs since...

I would like to wrap generator expressions in a function like in the following example. ```cpp inline auto build(int n) { auto x = xt::make_xshared(xt::arange(n)); return x*x; } xt::xtensor array;...

The following code compiled with GCC 11.3 using C++20 throws on the following code snippet ``` xt::xarray savgol_filter(xt::xarray x, size_t window_length, size_t polyorder, std::ptrdiff_t axis = -1) { xt::xarray out...

It seems that some headers are only for doxygen. It would be great to get rid of them https://github.com/xtensor-stack/xtensor/blob/a57a6fa88511b1f21537cc07379d67c286c61de6/include/xtensor/xadapt.hpp#L472

Documentation
Help wanted