Interpolation on distributed arrays
Mostrar comentarios más antiguos
I would like to use interpolation, interp1, on a distributed array. I know that interp1 is not on the list of supported function for distributed arrays ( list of supported functions) but I would like to know if there is a way I didn't think of to make it work.
The code is basically:
x = linspace(0,10,1000);
y = x.^3;
x_dist = distributed(linspace(0,1,1000));
spmd
% Some code using distributed arrays
y_dist = interp1(x,y,x_dist);
% Some code using distributed arrays
end
Is gathering the array the only solution if I want to use interp1 in the middle of a spmd block or is there a solution involving labBroadcast or something else ?
Respuestas (0)
Categorías
Más información sobre Distributed Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!