Re: Function Libraries and 'LibraryFunction'
- To: mathgroup at smc.vnet.net
- Subject: [mg128786] Re: Function Libraries and 'LibraryFunction'
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Sun, 25 Nov 2012 23:24:37 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20121122004935.27F8E68A7@smc.vnet.net>
Hi, 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 http://reference.wolfram.com/mathematica/LibraryLink/tutorial/Overview.html Additionally, you want to check out http://reference.wolfram.com/mathematica/guide/LibraryLink.html http://reference.wolfram.com/mathematica/CCompilerDriver/tutorial/Overview.html http://reference.wolfram.com/mathematica/CCompilerDriver/ref/CreateLibrary.html 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 SystemFiles/Links/LibraryLink/LibraryResources/Source 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. Cheers Patrick 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 >
- References:
- Function Libraries and 'LibraryFunction'
- From: pw <p.willis@telus.net>
- Function Libraries and 'LibraryFunction'