[Date Index] [Thread Index] [Author Index]
Export a matrix in C form
Hi, I have a big matrix in Mathematica with elements given as function of several parameters. I would like to export this matrix to C/C++ in this general form. However, if I use CForm, I obtain something like List(List(cos(x),sin(y), ...), List(exp(x*y), ...), ...) I have never seen such C/C++ code :-( It is possible to save the matrix element to a single file containing definitions all matrix elements in the form double M; M=cos(x); M=sin(x); ... Thank you very much.