aherbert opened a new pull request #76: NUMBERS-143: Added specialised hypot function to Complex. URL: https://github.com/apache/commons-numbers/pull/76 The new implementation is faster and has lower maximum error than using Math.hypot. This is a port of the "Freely Distributable Math Library" hypot function. The original source notice is included in the project LICENSE. The functionality of Complex.abs should match Math.hypot for infinity edge case handling and scaling of the intermediate sum. Tests have been added to the CStandardTest to check the returned value on random numbers. Update Complex performance test for Complex.abs(). Add tests for Math.sqrt(Complex.norm()) and use of Math.hypot(). Increase size to 10000 to prevent branch prediction memorising the test data. Exclude PMD rule ExcessiveMethodLength for Complex.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
