A differentiable programming language with an integration primitive that soundly handles interactions among the derivative, integral, and discontinuities.
36
stars
4
forks
source link
No way to emit c code for custom SmoothFuncs yet #16
Added support for this.
You can add multivariate functions by using Tuples as inputs (see ATan2 in smooth.py)
You can also provide C support by overloading the to_c() method. (see c_math.py)
We can't use the c evaluator with custom SmoothFunc objects yet
It seems the current teg.math smooth functions have hardcoded function mappings in teg/ir/emit.c
Allow users to specify this? Via overloaded functions or however