xtensor
xtensor copied to clipboard
C++ tensors with broadcasting and lazy computing
See https://xtensor.readthedocs.io/en/latest/api/xshape.html?highlight=has_shape#xshape
I have started using xtensor to design filters the following code looks to be very conducive to threading but the profiling tools say it is sequential. ```cpp auto row_axis =...
I think `xt::median()` should have the same kind of interface as a reducer. It should be able to be computed over any `axes`, not just 1 `axis`.
# Checklist - [ ] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. -...
The following code uses `xtensor_fixed` as a primitive type inside an `xtensor`. I'd expect it to behave similarly to a primitive type like `float` in terms of allocation and deallocation....
I want to pass around a reference to the row of a matrix and use that reference to edit the row. This can be done in numpy: ```python >>> X...
I have a clang-format configuration file that is getting close to our formatting ``` BasedOnStyle: Mozilla AccessModifierOffset: '-4' AlignAfterOpenBracket: Align AlignEscapedNewlinesLeft: 'false' AllowAllParametersOfDeclarationOnNextLine: 'true' AllowShortBlocksOnASingleLine: 'false' AllowShortCaseLabelsOnASingleLine: 'false' AllowShortFunctionsOnASingleLine: 'false'...
When using adapt with strides, the assignment operator doesn't work correctly. ```cpp #include #include #include #include #include int main() { xt::xtensor tensor_input = xt::arange(25).reshape({5, 5}); xt::xtensor tensor_output = xt::arange(9).reshape({3, 3});...
I noticed that in the documentation, there is a session "Intermediate result" in "common pitfalls" . Using intermediate variables in a function will cause an error because the `tmp` is...
If the upper bound of an axis of size 1 is exceeded in at(), I expected an exception to be thrown. However this is not the case. For example, I...