Commit fdd02b33 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix bug for some compilers with nansum on integer type

Checking the "nan-ness" of an integer is ill-posed, such that
the standard library of some compilers returns an error message.
Dropping the nan filter here for the sum is safe because `xt::equal`
evaluates to false when either operand is NAN.
Showing with 1 addition and 1 deletion
+1 -1
...@@ -412,7 +412,7 @@ namespace evalhyd ...@@ -412,7 +412,7 @@ namespace evalhyd
); );
// compute number of forecasts in each forecast bin $N_i$ // compute number of forecasts in each forecast bin $N_i$
auto N_i = xt::eval(xt::nansum(msk_bins, -1)); auto N_i = xt::eval(xt::sum(msk_bins, -1));
xt::view(REL_DIAG, xt::all(), xt::all(), m, e, xt::all(), xt::view(REL_DIAG, xt::all(), xt::all(), m, e, xt::all(),
xt::all(), 2) = N_i; xt::all(), 2) = N_i;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment