LibraryFunctionLoad

LibraryFunctionLoad[lib,fun,argtype,rettype]

loads Wolfram Library lib and makes the library function fun available in the Wolfram Language.

Details and Options

Examples

Basic Examples  (3)

Load a function from a sample library:

In[1]:=
Click for copyable input
Out[1]=

Call the function:

In[2]:=
Click for copyable input
Out[2]=

You can call LibraryFunctionLoad more than once for the same input:

In[3]:=
Click for copyable input
Out[3]=

Load a function from the library, which will exchange data over WSTP:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Load a function, which calls back to the Wolfram Language to evaluate Message[MyFunction::info]:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

See Also

LibraryFunction  LibraryFunctionUnload  FindLibrary  Function  Compile  CompiledFunction  Install

Tutorials

Introduced in 2010
(8.0)
| Updated in 2014
(10.0)