From 45a88725be7314ba5ba4dcd80365e7166deef0dd Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Fri, 13 Jan 2023 19:21:01 +0100
Subject: [PATCH] remove unnecessary casting

---
 include/evalhyd/detail/probabilist/brier.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/evalhyd/detail/probabilist/brier.hpp b/include/evalhyd/detail/probabilist/brier.hpp
index 1da4fdd..2beef72 100644
--- a/include/evalhyd/detail/probabilist/brier.hpp
+++ b/include/evalhyd/detail/probabilist/brier.hpp
@@ -164,7 +164,7 @@ namespace evalhyd
                 // determine probability of threshold(s) exceedance
                 // /!\ probability calculation dividing by n (the number of
                 //     members), not n+1 (the number of ranks) like in other metrics
-                return xt::cast<double>(sum_f_k) / n_mbr;
+                return sum_f_k / n_mbr;
             }
         }
 
-- 
GitLab