Tom de Geus
Tom de Geus
**Is your feature request related to a problem? Please describe.** *Goal* I would like to add a toc entry to each ``.. autofunction:`` Suppose: ```rst .. automodule:: foo.bar .. rubric::...
We are missing an equivalent of the NumPy function `ravel_multi_index`
In general shrinking with resize of `xt::xtensor` does preserve elements. It would be nice to have the option to do so (if the underlying container allows it. E.g. ```cpp xt::xtensor...
I am trying to evaluate the following partial contraction ```none c(e,q,i,j) = a(e,q,i,j,k,l) * b(e,q,l,k) ``` using ```cpp #include #include #include #include int main() { xt::xtensor a = xt::random::rand({1,4,2,2,2,2}); xt::xtensor...
```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); }...
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...
(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; }...
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