Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-defined functions cannot be accessed in Mex-file. #212

Open
jrfaeder opened this issue Apr 3, 2019 · 1 comment
Open

User-defined functions cannot be accessed in Mex-file. #212

jrfaeder opened this issue Apr 3, 2019 · 1 comment

Comments

@jrfaeder
Copy link
Contributor

jrfaeder commented Apr 3, 2019

The functions are currently written to the Mex file, but they are not called internally and no interface is provided to access them through Matlab. To use in Matlab the functions must be re-created there.

This applies to global functions only. To provide an external interface to local functions would be more complicated.

@lh64
Copy link
Contributor

lh64 commented Apr 4, 2019

For network-based simulation, local functions get compiled down to global functions (or sometimes just numbers), so I don't think that's an issue. Any code that fixes the problems with accessing global functions in Mex files I believe will work for local functions too.

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

No branches or pull requests

2 participants