xtensor
xtensor copied to clipboard
C++ tensors with broadcasting and lazy computing
# Checklist - [ ] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. -...
# 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...
# 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...
On Android arm64-v8a, ```cpp template xt::xtensor logSoftmax(const xt::xtensor &matrix) { xt::xtensor maxVals = xt::amax(matrix, {1}, xt::keep_dims); auto shifted = matrix - maxVals; auto expVals = xt::exp(shifted); auto sumExp = xt::sum(expVals,...
# 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...
There appears to have been a regression in xt::drop between the 0.26.0 and 0.27.0 releases. Consider the following source code: ```C++ #include #include int main() { auto my_array = xt::xtensor({1,...
# Description Convert slices from CRTP to C++20 concepts # Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have...
Hello, I am using xtensor 0.26.0 and the following code snipped adapted from the documentation: ```c++ template auto cos_plus_sin(E&& expr) { auto shared_expr = xt::make_xshared(std::forward(expr)); return xt::sin(shared_expr) + xt::cos(shared_expr); }...
**Environment:** - xtensor: 0.25.0 - xtl: 0.7.7 - xsimd: 13.2.0 - OS: Windows 11 24H2 - Compiler: MSVC 19.44 (Visual Studio 2022) - C++ Standard: C++14 - Compilation flags: ```text...
In the Python documentation for NumPy clip() there is a **note** section that gives a specific behavior when a_min is greater than a_max. https://numpy.org/doc/stable/reference/generated/numpy.clip.html Snippet from the numpy.clip.html page above...