Skip to content

Instantly share code, notes, and snippets.

@yoavram
Created May 25, 2020 10:43
Show Gist options
  • Save yoavram/61edd4a01f68fb8cdd908ed5bc05c366 to your computer and use it in GitHub Desktop.
Save yoavram/61edd4a01f68fb8cdd908ed5bc05c366 to your computer and use it in GitHub Desktop.
A3: logaddexp
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adsurbum
Copy link

np.logaddexp calculates the expression effectively, without explicitly computing the intermediate exp values. If the power of exponential is high, exp value could exceed the integer range (with result inf), np.logaddexp solves this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment