This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Does select method produce SIMD code ?

Tags: None
(comma "," separated)
lplagne
Registered Member
Posts
11
Karma
0
Hi,
I would like to vectorize a piece of code with a conditional branch.
I wonder if the following code is supposed to produce a vectorized binary ?
Code: Select all
Eigen::Vector4f a,b;

a << 0 ,1 ,2 ,3 ,4;
b << 5 ,6 ,7 ,8 ,9;

a=(a.array()<2).select(a,b);

Thank you for your help.

Laurent
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
sadly not yet, we have a pretty old bug entry about that...
lplagne
Registered Member
Posts
11
Karma
0
Thank you.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]