structure input for FindRoots
Thu, 09/29/2022 - 03:21 am
Functions to be solved by FindRoots can be passed a parameter wave, but for some calculations I would like to pass a large number of parameters that are best represented in a multidimensional form. I think that the parameter wave must be 1D. It would be great if we could use a structure to pass multiple kinds of data to the function.
In my case, the calculation of input parameters is costly, but only needs to be done once for a given call to findroots IF I have a way to pass those parameters, otherwise they must be recalculated on every iteration. I think the situation is the same for the optimize operation.
Could it be done?