-
-
Notifications
You must be signed in to change notification settings - Fork 189
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 assignment for nullptr var_value<matrix> and for assigning expressions #2978
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0426e8a
fix assignment for nullptr var_value<matrix> and for assigning expres…
SteveBronder f5d49a6
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot a8ab023
update docs
SteveBronder 0d2a46a
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot b1eb578
add setZero() to matrix_cl types
SteveBronder 34ad243
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot 7a609a6
remove extra setZero()
SteveBronder a49035c
assign tests y and x should be the same for nullptr case
SteveBronder 8449c99
change hard_copy to deep_copy, fix async logic in setZero() for matri…
SteveBronder 1d29dcc
merge to upstream
SteveBronder 42291fb
add test for matrix_cl.setZero()
SteveBronder 7dcf33b
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot bbc701a
add test for matrix_cl.setZero()
SteveBronder a18614f
Merge remote-tracking branch 'origin/fix/hard-copy-var-assign' into f…
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
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.
Can you a comment just stating that this is intentionally different from the above test and why (e.g., that y did not exist before and therefore does not have its own memory which can be set to 0)
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.
Sure, I also wrote another test here to show that the
assign_nan
test has the same behavior for both kinds of matrices