cutcutcodec.core.compilation.sympy_to_torch.lambdify

Convert a sympy expression into a torch function.

It is the main entry point. The preprocessing is delegated to the cutcutcodec.core.compilation.sympy_to_torch.preprocess module. The compilation is delegated to the cutcutcodec.core.compilation.sympy_to_torch.printer module.

Classes

Lambdify(expr, **kwargs)

Convert a sympy expression into an evaluable torch function.