cutcutcodec.core.compilation.sympy_to_torch.dynamic
Torch dynamic evaluation of atomic sympy expression.
It is faster to initialise than the compilated version but it is slower to evaluate. This dynamic evaluation support broadcasting.
Implemented functions:
sympy.Abs
sympy.acos
sympy.acosh
sympy.Add +
sympy.And
sympy.asin
sympy.atan
sympy.cbrt
sympy.cos
sympy.cosh
sympy.Eq
sympy.exp
sympy.GreaterThan
sympy.im
sympy.ITE
sympy.LessThan
sympy.log
sympy.Max
sympy.Min
sympy.Mul *
sympy.Or
sympy.Piecewise
sympy.Pow / and **
sympy.re
sympy.sin
sympy.sinh
sympy.sqrt
sympy.StrictGreaterThan
sympy.StrictLessThan
sympy.tan
sympy.tanh
sympy.Tuple
Not implemented functions:
sympy.Add + and -
sympy.arg
sympy.asinh
sympy.atan2
sympy.atanh
sympy.ceiling
sympy.Determinant
sympy.erf
sympy.floor
sympy.HadamardProduct
sympy.loggamma
sympy.MatAdd
sympy.Mod %
sympy.Ne
sympy.Not
sympy.sign
sympy.Trace
Details