ublas
ublas copied to clipboard
Boost.uBlas
Intrmediate pull request
Pull request for work done during GSoC21, Implementation of subtensor as tensors with subtensor_engine. Behave like tensors in expressions and obey all operators. Future Work - [ ] Subtensor iterator...
Dear everyone, I hope you are doing well. I stumbled across an oddity using ublas::vector which I am not able to explain. Any information as to why this happens and...
The strides giving wrong strides for static extents, which is not consistent with the other extents types. ```cpp namespace ublas = boost::numeric::ublas; using e_t = ublas::extents; auto s = to_strides_v;...
This exception is raised because the static rank extents for result type are not filled with one but instead default initialized to zero, making the extents invalid. ```cpp auto A...
As of now, the rank one tensor does not allow to be transposed. ```cpp auto const n = extents{3}; auto a = tensor_dynamic{n, 1.f}; auto c = tensor_dynamic{n}; std::vector pi{3};...
The static tensor does not check for out of range error, which makes the read and writes of invalid memory or segmentation fault easier. ```cpp auto t = tensor_static{4.f}; t.at(1,2,3)...
Right now, the static tensor gets confused about which strides type it should use for rank one extents because of the ambiguity between the `extents_static_rank` and `extents_static`. This ambiguity occurs...
The configuration [file](https://github.com/boostorg/ublas/blob/develop/.clang-tidy) excludes clang-tidy checks ```bash google-readability-braces-around-statements google-explicit-constructor hicpp-vararg cppcoreguidelines-pro-type-vararg ``` We should include them. - `google-readability-braces-around-statements` requires simple refactoring - `google-explicit-constructor` needs significant rework also in the test...
Lambda function https://github.com/boostorg/ublas/blob/32795e124ba66192f4ee3a4aaea0b76ae38a340a/include/boost/numeric/ublas/tensor/functions.hpp#L359 performs a wrong computation of the resulting static shape invoked in line https://github.com/boostorg/ublas/blob/32795e124ba66192f4ee3a4aaea0b76ae38a340a/examples/tensor/multiply_tensors_product_function.cpp#L312