Vectorizing impossible operations: boolean algebra, sets, and filters

from blog Alex Molas Blog, | ↗ original
How to use boolean algebra to vectorize complex operations and get x2000 speed-up.