-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Generic var templates for operators and std::iterator_trait var/fvar specialization #1525
Merged
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8309363
Adds std iterator_traits specialization for fvar and var. The var ope…
SteveBronder bd9b20c
cleanup the template names
SteveBronder f8f2e3a
[Jenkins] auto-formatting by clang-format version 5.0.2-svn328729-1~e…
stan-buildbot 8806331
cleanup the unary var templates
SteveBronder a6b4d81
cleanup the unary var templates
SteveBronder 3868acf
[Jenkins] auto-formatting by clang-format version 5.0.2-svn328729-1~e…
stan-buildbot 5e07ef9
replace var_or_fvar_t with autodiff_t in require_generics tests
SteveBronder 119a7e7
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot 1348dda
remove template from ostream for var
SteveBronder 858e1f2
Merge branch 'cleanup/generic-templates-var' of github.com:stan-dev/m…
SteveBronder ec6345a
fix order of members in kinsoldata
SteveBronder 4300497
revert beta-binomial changes
SteveBronder fd35443
Fixup template order for core var impls
SteveBronder 73181b4
Merge commit 'cb961050fd2bb013cc658eb8e3eafaa6bdf1cf38' into HEAD
yashikno 36777ab
[Jenkins] auto-formatting by clang-format version 5.0.0-3~16.04.1 (ta…
stan-buildbot ad62f4f
Moves cmath var and fvar stuff over to prim and uses initlializer bra…
SteveBronder fd2a4a8
Merge commit '65aec14f5caea8b9e38a7475afcd4a6681648497' into HEAD
yashikno 930329d
[Jenkins] auto-formatting by clang-format version 5.0.2-svn328729-1~e…
stan-buildbot 6185370
put back the namespace call for exp in gp_periodic_cov and remove sta…
SteveBronder 12ec611
Merge branch 'cleanup/generic-templates-var' of github.com:stan-dev/m…
SteveBronder 88c86e8
merge to develop
SteveBronder 5564039
merge to develop
SteveBronder a694d1a
Merge branch 'develop' into cleanup/generic-templates-var
SteveBronder 5740cd4
Merge remote-tracking branch 'origin/develop' into cleanup/generic-te…
SteveBronder 4cba532
Merge remote-tracking branch 'origin/develop' into cleanup/generic-te…
SteveBronder 30ee8c9
Remove Var&& arguments for const var& arguments in rev/core
SteveBronder 1a565b6
[Jenkins] auto-formatting by clang-format version 5.0.0-3~16.04.1 (ta…
stan-buildbot 75eaf43
merge to develop
SteveBronder 1342d33
Merge branch 'develop' of https://github.com/stan-dev/math into clean…
3604151
split cmath.hpp into files w. unit tests
9eebaa7
fix isnan tests to call right fun
993ceaa
testing pass by value for var ops instead of by reference
SteveBronder cd60021
Merge branch 'cleanup/pass-var-by-value', remote-tracking branch 'ori…
SteveBronder ced2df7
Merge branch 'cleanup/generic-templates-var' of github.com:stan-dev/m…
SteveBronder 8d460ac
Merge commit 'c0d2265f842a1b2df04855fac49d87e9962aa878' into HEAD
yashikno 2795719
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot 99a916b
Merge branch 'develop' of https://github.com/stan-dev/math into clean…
84f5b26
Merge branch 'develop' of https://github.com/stan-dev/math into clean…
06ad089
templated var overloads for pow
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,8 @@ namespace std { | |
* @param a Argument. | ||
* @return 1 if argument is infinite and 0 otherwise. | ||
*/ | ||
inline int isinf(const stan::math::var& a) { | ||
template <typename Var, stan::require_var_t<Var>...> | ||
inline bool isinf(Var&& a) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can also be made fully generic in |
||
return stan::math::is_inf(a.val()); | ||
} | ||
|
||
|
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
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.
Oops...