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

I'm trying to run a simple code example to test out slicing arrays. However I'm getting both bizarre results and errors: ```cpp xt::xarray arr1 { {1.0, 2.0, 3.0}, {4.0, 5.0,...

Bug

Minimal code to reproduce: ``` #include #include #include int main() { xt::xtensor xtest{0, 1, 2, 3, 4}; std::cout

Bug

Example; ```python import numpy as np np.fromfunction(lambda i, j: i == j, (2, 3), dtype=int) ``` Would be nice to have an inbuilt equivalent.

Feature Request

Public documentation for xshape: https://xtensor.readthedocs.io/en/stable/api/xshape.html Displays a doxygen error. ![Screenshot 2022-07-22 135549](https://user-images.githubusercontent.com/109805094/180443659-9d9a4868-d003-4340-870d-f89b66077fdc.png)

Bug
Documentation

Does xtensor provide a function similar to fancy indexing in numpy? For example, you can get a numpy array by doing the following ```python import numpy as np a =...

I tried different ways to set the parameters for xtensor_fixed, as in function `e`, `f`, `g` and `h` in the following code ``` #include #include static constexpr std::size_t N =...

I want to start this topic just to discuss how GPU support could be introduced in the library. * [SyCL](https://github.com/keryell/triSYCL/blob/master/README.rst#introduction) (lack of [full opensource compiler support but great c++ integration....

Feature Request

Hi, There seems to be the same kind of compilation error as in #1981 with reducer functions (e.g. `xt::mean`). ```cpp #include #include #include int main(int argc, char* argv[]) { xt::xtensor...

I have a question regarding the internals of reducing functions that I can't find an answer for in the documentation. When applying a reducing function like `xt::mean` to an axis...

Hi, description as the above title. My codes are: ```cpp xarray ab = { { 0. , 1. , 0. , -0.13412199999999999}, {-0.28172107246038075, 0. , 0.9594963456583735 , 0.381612172643986 }, {-0....

xt::view