I have a compiled function which depends upon few matrices and what I need to do is non-linear curve fitting to the known data with these matrices as parameters to be deduced from the fit. However I don't know how to write the sintax for this NonlinearModelFit when parameters are matrices and not single reals. The thing is that I don't know a priore the lengths of these lists (one-dimensional matrices), so as to rewriting the compiled function through components of matrices. Any ideas?
Thanks!