bug when reducing standard deviation along given axis with rtensor
Compilation fails with the latest version of evalhyd
. After some debugging, I found out that this is due to a problem in the calculation of the standard deviation on specific axes of xt::rtensor
(this works on xt::xtensor
and on xt::pytensor
) in the components alpha and gamma of KGE and KGEPRIME, respectively.
See here for calculation of alpha in KGE: https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd/-/blob/main/src/determinist/evaluator.hpp#L156-157
See here for calculation of gamma in KGEPRIME https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd/-/blob/main/src/determinist/evaluator.hpp#L172-173
This bug seems to already be reported in their issue tracker https://github.com/xtensor-stack/xtensor-r/issues/85, but it has not been resolved yet unfortunately.