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

fixes #534, simplifying fvar ctors #536

Merged
merged 1 commit into from
Apr 28, 2017
Merged

Conversation

bob-carpenter
Copy link
Contributor

Submission Checklist

  • Run unit tests: ./runTests.py test/unit
  • Run cpplint: make cpplint
  • Declare copyright holder and open-source license: see below

Summary:

Simplified fvar<T> constructors to allow generic assignable value and tangent.

Intended Effect:

Remove all the complicated edge cases, avoid if_else, reducing the number of fvar constructors and simplifying them.

How to Verify:

Unit tests all still work.

Side Effects:

No.

Documentation:

Added doxygen doc to entire core/fvar.hpp file.

Reviewer Suggestions:

anyone

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

Columbia University

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@bob-carpenter
Copy link
Contributor Author

Could someone review this one? Should be really easy as the new ones make sense and all the tests pass :-)

@syclik
Copy link
Member

syclik commented Apr 28, 2017

Thanks, Bob.

@syclik syclik merged commit 09ca518 into develop Apr 28, 2017
@syclik syclik deleted the bugfix/0534-redundant-fvar-ctor branch April 28, 2017 19:50
seantalts added a commit that referenced this pull request May 2, 2017
…var-ctor"

This reverts commit 09ca518, reversing
changes made to ba1f8a0.
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.

2 participants