Open mathiasgredal opened 4 years ago
Thanks for reporting, this is indeed a bug.
Another possibility to avoid splitting the operation (and which avoids mixing boolean value and arithmetic operations) is to use the where
function:
xt::xarray<double> res = xt::where(!(b <= 0), a, 0.);
I was trying to convert code from python to c++, when I ran into an issue, that I think might be a bug.
Python code:
C++ code:
However when compiling the c++ code, I get the following errors:
Here is the full compiler output: https://pastebin.com/TZZCfL6Z
My setup is:
One way to fix this error is to disable simd:
or to split the operation: