swift-numerics
swift-numerics copied to clipboard
Correctly handle inf, nan, overflow and underflow in complex derivatives
trafficstars
#111 added derivatives for some Complex APIs but the implementation did not consider .infinity, .nan, overflow and underflow. The following comments made by Steve should be addressed at some point:
https://github.com/apple/swift-numerics/pull/111#discussion_r413260266
https://github.com/apple/swift-numerics/pull/111#discussion_r413261636