Skip to content

Implementing Compile for non compilable llvmlite functions as python functions#1161

Merged
rocky merged 3 commits intomasterfrom
fixes4Compile
Mar 14, 2021
Merged

Implementing Compile for non compilable llvmlite functions as python functions#1161
rocky merged 3 commits intomasterfrom
fixes4Compile

Conversation

@mmatera
Copy link
Copy Markdown
Contributor

@mmatera mmatera commented Feb 20, 2021

In this PR, some ideas to improve the support of System`Compile are implemented, in a way more generic expressions can be converted to a python callable object, including complex valued functions.
This mechanism is also used to implement a better behaviour for to_python over System`Function expressions: when called on these kind of expressions, to_python returns a python callable object which can be passed to things like optimizers and integrators.

Copy link
Copy Markdown
Member

@rocky rocky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for doing this!

I took the liberty of rebasing off of master (there were merge conflicts) and squashed some commits.

and address some merge conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants