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

Possibility of allocation-free from julia via MathLink #54

Open
linqiu15 opened this issue Jan 19, 2022 · 2 comments
Open

Possibility of allocation-free from julia via MathLink #54

linqiu15 opened this issue Jan 19, 2022 · 2 comments

Comments

@linqiu15
Copy link

Is it possible to avoid unecessary memory allocation when using weval(W"Func"(pars)).Even native Methematica Func will need memory and this cause trouble for millions times of calculation.

@simonbyrne
Copy link
Member

Unfortunately, I don't think this is generally possible. It might be possible in the case of large arrays of floats, depending on which protocol is used. What is your use case?

@simonbyrne
Copy link
Member

This looks helpful: https://mathematica.stackexchange.com/a/181185

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