Skip to content

Can / should valarray use #pragma loop(ivdep) #1172

Discussion options

You must be logged in to vote

I can aswer myself: not in general case, as the elements of valarray can be of arbitrary types, for which this pragma isn't safe.

std::valarray<std::string> v; // compiles

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexGuteniev
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexGuteniev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants