xtensor
xtensor copied to clipboard
C++ tensors with broadcasting and lazy computing
my csv file column fields: date, username, vol, type all fields are string fromat. Error occurred when convert string to int: C++ code: ``` auto data = xt::load_csv(csvfile); auto col2...
https://github.com/xtensor-stack/xtensor/issues/926 behold my code: ``` int main() { xt::xarray a = xt::zeros({3, 3, 3}); auto b = xt::reshape_view(a, {3, -1}); cout
Hi, as always: thanks for the nice work! I've just seen the switch from gtest to doctest in several projects. I just wanted to mention that the docs still mention...
Currently I am using diff function to get difference but like python diff function (np.diff(WWdx, axis=1, prepend=0, append=0), it doesn't have prepand and append parameter. I have array defined as...
my csv file column fields: date, username, vol, type all fields are string fromat. can't load as double, but when load as string, I can't sum vol column, and can't...
https://github.com/xtensor-stack/xtensor/blob/78aaac39143caa78da7c5c0734ccef957535f0c0/docs/source/quickref/manipulation.rst Very minor issue. Change `auto sq0 = xt::xqueeze(b);` `auto sq1 = squeeze(b, {2, 3}, check_policy::full());` `auto sq2 = squeeze(b, 2);` to `auto sq0 = xt::squeeze(b);` `auto sq1 = xt::squeeze(b,...
When using `xt::sort` without passing the axis along which to sort, I was expecting it to sort the values in recpect to the whole container, however, it sorted the values...
Hi! I've been here [before](https://github.com/xtensor-stack/xtensor/issues/2403) complaining about the lack of recent benchmarks. I hoped someone is going to do it, but since nobody showed up and I find many of...
The following example: ```cpp #include #include #include int main() { xt::xtensor a = {1, 2, 1, 0, 3, 1}; xt::xtensor idx = {0, 3}; xt::xtensor jdx = {1, 2}; auto...
It seems that xtensor is lacking a part of one of the [three indexing types supported numpy](https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html), the integer Advanced Indexing type. Example for integer advanced index: _From each row,...