compile_ex with more than two symbols in the expression
Dear all, Is there a way to use "compile_ex" with more than 2 free variables? I am generating several expressions using .diff() and would like to compile them into C functions and attach function pointers. Using the .subs() method is too slow for my code. Unfortunately my expressions contain more than just two symbolic variables. Ideally I would love to have a FUNCP_nP typedef that can accept a list or array of n symbolic variables and use a compile_ex function that accepts an lst of the symbols. I noticed that the FUNCP_CUBA typedef sort of does this, but I am not sure how to access the compiled function. Any help or pointers would be greatly appreciated! Best, Will S.
Hi. You can see implementation in excompiler.cpp in source. As I understand, the list of functions and list of variables write to stream ofs and then being compiled.
Hi. I'm working with partially sparse matrix. The determinant used with another library, it's compiled similar to FUNCP_CUBA in excompiler.cpp with g++. When rank of matrix become more than 8-9, compilation time will increase very much, output size can exceed mb. Can collecting determinant help to decrease compilation time? How the best way to do it?
participants (2)
-
soppon
-
William Silva