reduction don't return the good value when nan is in the input

User picture
User picture
User picture