Skip to content
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

[FEATURE] a named function for broadcasting a value #1681

Open
DenisYaroshevskiy opened this issue Sep 25, 2023 · 9 comments
Open

[FEATURE] a named function for broadcasting a value #1681

DenisYaroshevskiy opened this issue Sep 25, 2023 · 9 comments
Assignees

Comments

@DenisYaroshevskiy
Copy link
Collaborator

The syntax we are using eve::wide<T>(v) can be confusing in certain scenarious.

Like

eve::wide<T> x(ptr);
eve::wide<T> x(*ptr);

mean different things.

I would like a function, that a person not familiar with eve can easily understand

@jfalcou
Copy link
Owner

jfalcou commented Jan 12, 2024

auto x   = widen(4);
auto x8 = widen(4, lane<8>);

What about this name ? We WIDEN the scalar and get a wide

@DenisYaroshevskiy
Copy link
Collaborator Author

I think that is wqy too cute. We use the word splat already. Broadcast is also a good one

@jfalcou
Copy link
Owner

jfalcou commented Jan 13, 2024

we use splat as a decorator. We can make the decorator splatted ? and reuse splat as a function ?

@jfalcou
Copy link
Owner

jfalcou commented Jan 13, 2024

won't broadcast conflict with the shuffle or are we OK overlaoding broadcast for both ?

@DenisYaroshevskiy
Copy link
Collaborator Author

We can do either or I think? I don't know which is better.

@jfalcou
Copy link
Owner

jfalcou commented Jan 13, 2024

People probably knows broadcast already

@DenisYaroshevskiy
Copy link
Collaborator Author

Broadcast it is then

@DenisYaroshevskiy
Copy link
Collaborator Author

@jfalcou
Copy link
Owner

jfalcou commented Jan 13, 2024

@jfalcou jfalcou self-assigned this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants