-
Notifications
You must be signed in to change notification settings - Fork 197
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 unary_op
docs and add map_offset
as an improved version of write_only_unary_op
#1149
Fix unary_op
docs and add map_offset
as an improved version of write_only_unary_op
#1149
Conversation
…ite_only_unary_op
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.
Thanks for the long-awaited change! I have some comments regarding the naming though.
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.
Thanks Louis for the PR. From my side it looks good, pre-approving. Please address the open issues raised by Artem.
index_unary_op
as an improved version of write_only_unary_op
unary_op
docs and add map_offset
as an improved version of write_only_unary_op
Sorry for being late to this discussion, @Nyrio. Yes I always prefer this option especially when it's an operation that we intend to use frequently because it allows us to centralize the main logic and optimize as needed. |
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.
Just a couple minor things but otherwise looks great!
@cjnolet It could be that Doxygen parses I've changed the documentation as requested. |
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.
LGTM
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.
LGTM
Codecov ReportBase: 87.99% // Head: 87.99% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## branch-23.02 #1149 +/- ##
=============================================
Coverage 87.99% 87.99%
=============================================
Files 21 21
Lines 483 483
=============================================
Hits 425 425
Misses 58 58 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
/merge |
Follows a discussion that we had about
write_only_unary_op
/writeOnlyUnaryOp
.For consistency and to simplify the use of this primitive, we shouldn't require dereferencing a pointer in the functor.
This new implementation uses
thrust::tabulate
but we can add our own optimized kernel later if we need.