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

Are you creating your own (de-)vectorization problems? #2

Open
jennybc opened this issue Apr 11, 2018 · 2 comments
Open

Are you creating your own (de-)vectorization problems? #2

jennybc opened this issue Apr 11, 2018 · 2 comments

Comments

@jennybc
Copy link
Owner

jennybc commented Apr 11, 2018

Sometimes we are the ones who miss opportunities to vectorize our own functions. Or sometimes we de-vectorize things that started out as vectorized. Red flags:

@colearendt:

Thinking too much in control structures like if () {} else {} often lands me in a non-vectorized state.

@hadley:

use of unlist() is a good warning sign that you're de-vectorising a function

@hadley
Copy link

hadley commented Apr 11, 2018

Two examples at https://dcl-2018-01.github.io/curriculum/vector-functions.html

@jennybc
Copy link
Owner Author

jennybc commented Apr 23, 2018

Great word @hadley said in meeting today: "scalarize". Meaning the opposite of vectorize.

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