In Scilab, you can use parallel_run :
function a=g(arg1) a=arg1*arg1 endfunction res=parallel_run(1:10, g);
Limitations
- uses only one core on Windows platforms.
- Currently, parallel_run processes only the arguments and results of scalar matrices of real values, and type arguments are not used
- You should not rely on side effects, such as changing variables from the external area: only the data stored in the result variables will be copied back to the calling environment.
- macros called by parallel_run cannot use the JVM
- changing the size of the stack (via gstacksize () or via stacksize ()) should occur during a call to parallel_run
source share