JuliaSymbolics / Symbolics.jl

Symbolic programming for the next generation of numerical software

Home Page:https://symbolics.juliasymbolics.org/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you remove NanMath from build_function output?

ejmeitz opened this issue · comments

Is there a way to tell Symbolics to build a function without the use of NanMath? I'm using the generated functions inside one of my packages and would like to not have the extra dependency. Its not a big deal if you cannot.

You can pass nanmath=false.

Are there docs anywhere on incorporating a function made by build_function into a package? There's no version of build_function that targets a Julia output that have the fname parameter so all the functions I make are nameless and I can't call them. I have way to many generated functions to add the names manually and its also too slow to generate them at runtime.

I don't understand, you can just gensym if you want?

Right now I call build_function with expr false and I save that to a file. I get something like : function (ˍ₋arg1,) ... end printed to my file. I just want to give those functions human readable names. Also is there any way to make the compile time of these functions faster? Its painfully slow for something that is just a bunch of multiplication and additions.

It's an anonymous function, it doesn't have a name.

Also is there any way to make the compile time of these functions faster? Its painfully slow for something that is just a bunch of multiplication and additions.

JuliaSimCompiler has a few techniques to accelerate it by directly targeting LLVM and doing custom passes.