Wolfram LibraryLink

Wolfram LibraryLink provides a powerful way to connect external code to the Wolfram Language, enabling high-speed and memory-efficient execution. It does this by allowing dynamic libraries to be directly loaded into the Wolfram Language kernel so that functions in the libraries can be immediately called from the Wolfram Language. Wolfram LibraryLink allows exchanging arbitrary data with the linked library: integers, reals, packed arrays, strings, and arbitrary Wolfram Language expressions, as well as sending messages and calling back to the Wolfram Language.

ReferenceReference

Wolfram LibraryLink Wolfram Language Functions

LibraryFunctionLoad load a function from a dynamic library into the Wolfram Language

LibraryFunction a function that calls into a dynamic library

LibraryFunctionInformation information on a library function

LibraryFunctionUnload, LibraryUnload unload functions and libraries

FindLibrary, $LibraryPath find libraries resolving system-specific file extensions

LibraryLoad load a library without calling any functions

ConnectLibraryCallbackFunction connect a Wolfram Language function for callback from a library

CreateManagedLibraryExpression manage library memory through an expression

ManagedLibraryExpressionQ  ▪  ManagedLibraryExpressionID

C Language Functions

MTensor_new  ▪  MTensor_free   ▪  MTensor_disown  ▪  MTensor_clone

MTensor_getRank  ▪  MTensor_getDimensions  ▪  MTensor_getFlattenedLength  ▪  MTensor_getType

MSparseArray_getRank  ▪  MSparseArray_getDimensions  ▪  MSparseArray_getType

MImage_getRowCount  ▪  MImage_getColumnCount  ▪  MImage_getDataType  ▪  MImage_getColorSpace

getWSTP  ▪  processWSTP

callLibraryCallbackFunction  ▪  registerLibraryCallbackManager

UTF8String_disown