-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Add perfect forwarding and constexpr to reverse mode functions #3092
Open
SteveBronder
wants to merge
33
commits into
develop
Choose a base branch
from
feature/pf-funcs-constexpr
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f164443
adds perfect forwarding and uses constexpr in functions
SteveBronder d70fb0f
fix return for eigenvector_sym
SteveBronder f08c711
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot ddea3c0
fix bad formatting for clang-format
SteveBronder d98f4f0
Merge commit '9052db82c3fafce144c355c757a9b7e44b884b66' into HEAD
yashikno 3012408
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot af37cbc
clean up type traits to change \!is_constant with is_autodiffable
SteveBronder 5152942
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot 888e2cc
force c++17
SteveBronder 9887597
Merge remote-tracking branch 'refs/remotes/origin/feature/pf-funcs-co…
SteveBronder d4ebc3d
remove unused type alias
SteveBronder d7350f2
add check_vari_on_stack for arena matrix
SteveBronder a54fb01
update type traits for fft, square_dist, and trace funcs
SteveBronder bf36144
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot 5d989a2
adds test framework for cleaning memory after autodiff calls
SteveBronder fdb5d03
update forward for ref in quad_form_sym
SteveBronder be242f0
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot aea8afa
Merge remote-tracking branch 'origin/develop' into feature/pf-funcs-c…
SteveBronder d5bcc83
update wrt review comments
SteveBronder a3f3cd8
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot c3d8136
update columns dot product for complex types
SteveBronder ab679fe
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot ad456a1
update columns_dot_product
SteveBronder bc96704
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot d1fc936
update
SteveBronder 5c8bd28
Merge remote-tracking branch 'refs/remotes/origin/feature/pf-funcs-co…
SteveBronder 17ffd02
start working on the constrain functions
SteveBronder 506fe50
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot c4c7605
fix move semantics in unit_vector_constrain
SteveBronder 82fc4f6
update ordered constrain
SteveBronder c826d98
fix use of x after forwarding in ordered_constrain
SteveBronder d5de333
update
SteveBronder 855546a
Merge remote-tracking branch 'origin/develop' into feature/pf-funcs-c…
SteveBronder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two typedefs seem to test the same thing. Also, shouldn't this be
is_autodiff_all_v
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need better names.
is_autodiff_v<>
looks to see is the type is a fvar or var and fails otherwise.is_autodiffable_v
looks into the scalar type of the type to see if it is autodiffable, so things like eigen matrices and vectors of var or fvar types would be true foris_autodiffable_v
.I left
is_autodiff
alone to not mess with the other functions that use it (mostly functions that use it in a requires). Maybe the currentis_autodiff
should be namedis_autodiff_scalar
?