We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro:
#define XTENSOR_ENABLE_ASSERT 1 #include <xtensor/xfixed.hpp> void test() { xt::xtensor_fixed<int, xt::xshape<3>> a = {1,2,3}; std::cout << xt::all(a <= 3) << std::endl; }
Compilation fails with:
xtensor/xiterator.hpp:1118:38: error: invalid operands to binary expression ('const xt::fixed_shape<3>' and 'const xt::fixed_shape<3>') XTENSOR_ASSERT(this->shape() == rhs.shape());
The code works correctly when assertions are not enabled.
Tested on 0.23.9
The text was updated successfully, but these errors were encountered:
Looks like a bug indeed. A PR would be much appreciated!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Repro:
Compilation fails with:
The code works correctly when assertions are not enabled.
Tested on 0.23.9
The text was updated successfully, but these errors were encountered: