On Friday, October 14, 2016 at 3:16:31 PM UTC+2, Martin Florek wrote: > > Thank you very much. This is very elegant way, I think that it solve my > problem. >
You're welcome. If you are looking to improve performance further, you could add @inbounds and @simd macro calls, as seen here: http://docs.julialang.org/en/release-0.5/manual/performance-tips/#performance-annotations