uschindler commented on PR #12281:
URL: https://github.com/apache/lucene/pull/12281#issuecomment-1586803881

   I debugged through it: The vector causes `norm1` and `norm2`, as well as 
`sum` to get `Infinity`. `Infinity/Infinity` results in `NaN`.
   
   So it is not caused by sqrt. In general you are right this might happen with 
any vector if the exponent overflows while summing up the component squares.
   
   I am not sure how to work around that. Maybe it should return 1, if the sqrt 
gets infinity?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to