Multithreaded & SIMD vectorized Mandelbrot in R using Rcpp & OpenMP
Do not use OpenMP with Rcpp‘s *Vector or *Matrix objects as they mask SEXP functions / memory allocations that are single-threaded. OpenMP is a multi-threaded approach. This is why the code is crashing. One way to get around this limitation is to use a non-R data structure to store the results. One of the following … Read more