[eigen] Vectorized Hamming distance

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


Hello,
I would like to use the Eigen librabry to write a vectorized (using
SIMD instruction) version of the Hamming Distance between two
Matrix<int, N, 1>.
(following the spirit of Benoît Jacob's "Eigen2 as a vectorization
library" blog post)

The hamming distance consists on doing XOR between two vectors and
then counting the number of bits in the resulting vector.

Any suggestion on how to do this ?

Why is it that Eigen does not support boolean operations on int data types ?

Anyone has tried something similar before ?

Regards,
rodrigob.



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