Multithread alternative to accumarray

184 Views Asked by At

I am using accumarray() to create a 3D array from a list of xyz coordinates PointCoors and their respective values PointValues like this:

Stack=accumarray([PointCoors(:,1),PointCoors(:,2),PointCoors(:,3)],PointValues,...
  StackSize,@max,uint16(0));

However I found out that accumarray() does not multithread (don't see why it shouldn't) and as a result of this the computation of this step takes too long.

Is there an alternative to accumarray() that can take advantage of multiple cores?

Thank you

0

There are 0 best solutions below