Questions about multithreaded loops and FuncFits
Mon, 11/30/2020 - 10:31 am
I use a loop to read 1dim waves from a matrix (3dim wave) using beam, fit the wave and write the fit parameters into different matrices.
for (row_index=0; row_index<row_max; row_index +=1)
for (column_index=0; column_index<column_max; column_index +=1)
The Fit itself is already multithreaded. Can I call the fit directly and it will automatically be used multi-threaded or do I have to call a function that is itself multi-threaded and it will call the fit?
Would it be enough if I put the loop into a separate function, that is threadsafe and the loop would be processed by multiple threads or do I have to use a more complicated way: something like splitting the loop into several sections? If that would be necessary, my question would be, if there are problems when several W_coef and W_sigma Waves exist at the same time.