-
Notifications
You must be signed in to change notification settings - Fork 49
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
Correct ScatterViews template parameters order #614
base: main
Are you sure you want to change the base?
Conversation
Also added a small description on how to use ScatterView and added a description for the templates parameters (copied from the cheatsheet one).
* ``DataType``: | ||
Works the same as a |View|_'s DataType. | ||
|
||
* ``Layout``: |
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.
Description regarding Layout
.
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.
I'm not sure of what to write here, I wonder what happens if we pass a Layout (or DataType, or ExecutionSpace) that is different from the one of the underlying view: is it allowed under some circumstances, does it breaks anything ?
This is the main point where I think it would be important to have the opinion of someone familiar with ScatterViews.
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, Just a minor change.
Could you check the example compiles fine ?
Created hyperlinks to function from usage section Ensured example compile without change Moved Warning about namespace to the top of the file
Trying to instantiate a ScatterView while specifying its template parameters didn't work as written in the doc.
You can check it here: https://godbolt.org/z/Me1jKezjq
Also added a small description on how to use ScatterView and a description for each template parameter (copied from the cheatsheet).
All of this descriptions may be wrong and need to be checked by someone more familiar with ScatterViews.