CCodeGenerator`
CCodeGenerator`

SymbolicCGenerate

SymbolicCGenerate[cfun,name,opts]

generates symbolic C from the compiled function cfun using name as the exported function name.

更多信息和选项

  • To use SymbolicCGenerate, you first need to load it using Needs["CCodeGenerator`"].
  • SymbolicCGenerate can make standalone code or a Wolfram Library.
  • The Wolfram Language contains the necessary headers and libraries for standalone code.
  • You can generate a header for the generated code by setting "CodeTarget" to "WolframRTLHeader".
  • The following option can be given:
  • "CodeTarget""WolframRTL"the type of code to generate

范例

基本范例  (1)

First, load the package:

Generate symbolic C:

Convert the symbolic C into a string:

Wolfram Research (2010),SymbolicCGenerate,Wolfram 语言函数,https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

文本

Wolfram Research (2010),SymbolicCGenerate,Wolfram 语言函数,https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

CMS

Wolfram 语言. 2010. "SymbolicCGenerate." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

APA

Wolfram 语言. (2010). SymbolicCGenerate. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html 年

BibTeX

@misc{reference.wolfram_2024_symboliccgenerate, author="Wolfram Research", title="{SymbolicCGenerate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_symboliccgenerate, organization={Wolfram Research}, title={SymbolicCGenerate}, year={2010}, url={https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html}, note=[Accessed: 18-November-2024 ]}