Re: [eigen] checking for NaN

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


2012/1/5 Radu B. Rusu <rusu@xxxxxxxxxxxxxxxx>:
> Benoit,
>
> You're correct of course, but the articles that I sent explain how the default x == x test is slower than manually
> crafted SSE optimizations. Is the suggestion you had regarding the eigen array operations faster than doing 4 individual
> checks? Is array1 == array2 nothing but for (int i = 0; i < 3; ++i) array1[i] == array2[i],

I checked the source (ArrayCwiseBinaryOps.h:89):

EIGEN_MAKE_CWISE_BINARY_OP(operator==,std::equal_to)

So we're just using std::equal_to, Eigen is not doing vectorization by
itself here.

Sorry I didn't take a look at your link before posting. I don't know
more on this subject, sorry :)

Benoit



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/