3 ms·
Julia is really good for that. There's a macro @simd which lets you write a for loop and it will convert it to simd.
by adamnemecek 7y ago
Julia is really good for that.
There's a macro @simd which lets you write a for loop and it will convert it to simd.
- DNF2 7y agoYou don't really need the `@simd` macro, though. The compiler is pretty good at vectorizing on its own now. From the docs: "In many cases, Julia is able to automatically vectorize inner for loops without the use of `@simd`. Using `@simd` gives the compiler a little extra leeway to make it possible in more situations."