The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Function Libraries and 'LibraryFunction'
Replies: 3   Last Post: Nov 25, 2012 11:38 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Patrick Scheibe

Posts: 327
Registered: 5/22/07
Re: Function Libraries and 'LibraryFunction'
Posted: Nov 25, 2012 11:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I see no one has written an answer yet. First of all, yes, Mathematica
supports the loading of library function. Please start reading the
documentation here

Additionally, you want to check out

and all references therein.

These are basically the (1.) gotchas you should know and the (3.) doc. Furthermore, please note, that you have code-examples which reside in


under your Mathematica install path.

2.) Everything is explained in the documentation. The big advantage is, that it is possible to access tensors (lists, matrices, ..) of the Mathematica without copying them.

I hope this gives you a start.


On Nov 22, 2012, at 1:49 AM, pw wrote:

> Hello,
> I want to compile some library functions into a linux library
> for use with Mathematica.
> In general the library will reside in /usr/lib
> and be an ELF format .so file.
> 1.) Are there any 'gotchas' that I should be aware of?
> 2.) Do I need to link with Mathematica libraries if I don't use the
> MathLink calls, or do I need to wrap all my data types?
> 3.) Is there any additional documentation that exposes the use of
> external binary libs in Mathematica? (ie: Best practices)
> Thanks for any pointers.
> Peter

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.