Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sign error with log_sum_exp #1689

Merged
merged 2 commits into from Mar 11, 2022
Merged

Fix sign error with log_sum_exp #1689

merged 2 commits into from Mar 11, 2022

Conversation

SteveDiamond
Copy link
Collaborator

Description:

Stephen Boyd noticed that log_sum_exp of a non-negative value has unknown sign, where it should be non-negative. This PR fixes the sign error.

Type of change

  • New feature (backwards compatible)
  • New feature (breaking API changes)
  • Bug fix
  • Other (Documentation, CI, ...)

Contribution checklist

  • Add our license to new files.
  • Check that your code adheres to our coding style.
  • Write unittests.
  • Run the unittests and check that they’re passing.
  • Run the benchmarks to make sure your change doesn’t introduce a regression.

@sonarcloud
Copy link

sonarcloud bot commented Mar 10, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@SteveDiamond SteveDiamond merged commit 06854d9 into master Mar 11, 2022
@rileyjmurray
Copy link
Collaborator

I've propagated this change to 1.1.20. Will make a PR shortly.

@rileyjmurray rileyjmurray removed backport bugfix to 1.1 and 1.2 needs discussion Is this a bugfix or a new feature? labels May 16, 2022
rileyjmurray pushed a commit that referenced this pull request May 16, 2022
* fix sign error with log_sum_exp

* docs

(cherry picked from commit 06854d9)
@rileyjmurray
Copy link
Collaborator

Propagated to 1.2.1.

rileyjmurray pushed a commit that referenced this pull request May 16, 2022
* fix sign error with log_sum_exp

* docs

(cherry picked from commit 06854d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants