|
SOLUTIONS
|
Wolfram LibraryLink (程序库链接)
Wolfram LibraryLink 提供强大的方式连接外部代码至 Mathematica,允许高速执行和高效利用内存. 它允许直接加载动态库于 Mathematica 内核,因此程序库的函数可以直接从 Mathematica 中调用. Wolfram LibraryLink 允许与连接的程序库交换任意数据:整数、实数、包装的数组、字符串以及任意 Mathematica 表达式,还可以传送信息和调回至 Mathematica.
参考资料参考资料
Wolfram LibraryLink 的 Mathematica 函数
LibraryFunctionLoad — 从动态库中加载函数至 Mathematica
LibraryFunction — 调用动态库的函数
LibraryFunctionInformation — 一个程序库函数的信息
LibraryFunctionUnload, LibraryUnload — 卸载函数和程序库
FindLibrary, $LibraryPath — 寻找程序库解决指定系统的文件扩展
LibraryLoad — 加载一个程序库无需调用任何函数
C 语言函数
MTensor_new ▪ MTensor_free ▪ MTensor_disown ▪ MTensor_clone
MTensor_getRank ▪ MTensor_getDimensions ▪ MTensor_getFlattenedLength ▪ MTensor_getType
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
