|
SOLUTIONS
|
-
函数
- CAddress
- CAssign
- CBlock
- CCall
- CCodeGenerate
- CCodeStringGenerate
- CDeclare
- CForm
- CFunction
- CIf
- CPointerType
- CreateExecutable
- CreateLibrary
- CStruct
- Export
- FindLibrary
- Install
- LibraryFunction
- LibraryFunctionInformation
- LibraryFunctionLoad
- LibraryFunctionUnload
- LibraryGenerate
- LibraryLoad
- LibraryUnload
- mcc
- mprep
- Splice
- SymbolicCGenerate
- 相关指南
- 教程
C/C++ 语言接口
Mathematica 支持数种 C 和 C++ 程序接口. 您可以创建可执行的 C 程序,其中 C 函数直接连接到 Mathematica 函数中. 您也可以通过 MathLink 在 C 程序中调用 Mathematica 并充分使用它的功能. 同样,您可以只创建 C 程序段并修改 C 源代码.
参考资料参考资料
从 Mathematica 中调用 C 程序 »
Install — 装入一个可执行的 MathLink 程序
.tm — 连接 C 和 Mathematica 函数的模版文件
mcc, mprep — 建立 MathLink 程序的脚本
MLEvaluate() — 返回 Mathematica
从 C 程序中调用 Mathematica »
MLPutInteger32() ▪ MLGetInteger32() ▪ MLPutString() ▪ MLPutFunction() ▪ ...
MLOpenString() ▪ MLNextPacket() ▪ MLReady() ▪ ...
Wolfram 程序库链接 »
LibraryFunctionLoad — 从动态库中加载一个函数至 Mathematica
LibraryFunction — 一个调用动态库的函数
LibraryFunctionInformation ▪ LibraryFunctionUnload ▪ LibraryLoad ▪ LibraryUnload ▪ FindLibrary ▪ $LibraryPath ▪ ...
从 Mathematica 中调用 C 编译器 »
CreateExecutable — 从 C 代码中创建一个可执行文件
CreateLibrary — 从 C 代码中创建一个程序库
产生 C 代码 »
Export — 把 Mathematica 编译函数导出为 C 代码
CCodeGenerate — 把 Mathematica 编译函数导出为 C 代码
CCodeStringGenerate ▪ SymbolicCGenerate ▪ LibraryGenerate
CForm — 把一个表达式转换为 C 语言格式
Splice — 把 Mathematica 输出拼接为 C 源文件
C 代码的符号表示 »
CFunction — 一个 C 函数的符号表示
CCall — 调用 C 函数的符号表示
CAddress ▪ CAssign ▪ CBlock ▪ CDeclare ▪ CIf ▪ CPointerType ▪ CStruct





