MathLink.jl icon indicating copy to clipboard operation
MathLink.jl copied to clipboard

add list2array.jl

Open jzzhuang opened this issue 2 years ago • 4 comments

This converts a mathematica List object to julia array

jzzhuang avatar Aug 22 '22 11:08 jzzhuang

I am a bit confused as to the naming. What is the mma in mma_list_to_array?

fremling avatar Aug 22 '22 12:08 fremling

Thanks for your comment. That's an unofficial abbreviation to Mathematica, which I like personally but indeed not popular enough. We may change it to math_list_to_array or mlist_to_array :)

jzzhuang avatar Aug 22 '22 12:08 jzzhuang

I think this pull request fits into a larger story about namin copnventions for math link. I have in the pipeline to merge the MathLinksExtras library into MathLinks. That also comes with a few new funcitons.

There i sue the Prefix W to harmonize with the w in weval but it is possible that one should use the prefix ML instead, or something different.

fremling avatar Aug 23 '22 07:08 fremling

MathlinksExtras is cool. I agree with you that the prefix W is better.

jzzhuang avatar Aug 23 '22 14:08 jzzhuang

I will close this pull request since from v0.5.4 (https://github.com/JuliaInterop/MathLink.jl/releases/tag/v0.5.4) the funciton W2Jullia does this job.

fremling avatar Nov 28 '23 15:11 fremling