xtensor
xtensor copied to clipboard
C++ tensors with broadcasting and lazy computing
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,...
Minimal code to reproduce: ``` #include #include #include int main() { xt::xtensor xtest{0, 1, 2, 3, 4}; std::cout
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.
Public documentation for xshape: https://xtensor.readthedocs.io/en/stable/api/xshape.html Displays a doxygen error. 
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 =...
GPU support
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....
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....