I am missing something here. What is the final solutions?
vec[indices[i]] allocates a new a vector, doesn’t it?
Even if that is faster than the splatting, it will not as fast a direct call like fun(v1,v2,v3).
I am missing something here. What is the final solutions?
vec[indices[i]] allocates a new a vector, doesn’t it?
Even if that is faster than the splatting, it will not as fast a direct call like fun(v1,v2,v3).