Here's what I do when I need SIMD or vectorization: * Write ordinary Nim code that uses arrays. * Look at the produced assembler code. * Tweak the Nim code until the assembler looks efficient. (Ok, that's a lie, usually I don't have to do that.)
Alternatively, read this and port it over to Nim (not trivial but not impossible either): [http://www.codersnotes.com/notes/maths-lib-2016](http://www.codersnotes.com/notes/maths-lib-2016)/
