CompiledFunction[args,argregs,nregs,instr,func]
コンパイルされた関数を評価するコンパイルコードを表す.
CompiledFunction
CompiledFunction[args,argregs,nregs,instr,func]
コンパイルされた関数を評価するコンパイルコードを表す.
詳細
- Compileは,適切な引数に適用することで実行可能なCompiledFunctionオブジェクトを作成する.
- 明示的に構築されたCompiledFunctionオブジェクトは,実行することができる.このようなオブジェクトがWolfram言語によって最初に評価される際,基本的な一貫性のチェックが行われる.
- CompiledFunctionオブジェクトの中のコードは,理想化されたレジスタマシンに基づく.
- CompiledFunctionオブジェクトはネイティブにコンパイルされたオブジェクトを追加的に参照することができる.
例題
例 (1)
CompiledFunctionオブジェクトはCompileによって生成される:
{f, cf} = {Function[{x, y}, Sqrt[x y]], Compile[{x, y}, Sqrt[x y]]}CompiledFunctionオブジェクトは通常のFunctionオブジェクトとして使うことができる:
{f[1., 2.], cf[1., 2.]}{f[1, 2], cf[1, 2]}例外的な値に遭遇するとコンパイルされていない関数が使われる:
{f[-1, 2.], cf[-1, 2.]}テクニカルノート
関連するガイド
履歴
1991 で導入 (2.0) | 1999 で更新 (4.0) ▪ 2000 (4.1) ▪ 2002 (4.2) ▪ 2010 (8.0)
テキスト
Wolfram Research (1991), CompiledFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/CompiledFunction.html (2010年に更新).
CMS
Wolfram Language. 1991. "CompiledFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/CompiledFunction.html.
APA
Wolfram Language. (1991). CompiledFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompiledFunction.html
BibTeX
@misc{reference.wolfram_2026_compiledfunction, author="Wolfram Research", title="{CompiledFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/CompiledFunction.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_compiledfunction, organization={Wolfram Research}, title={CompiledFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/CompiledFunction.html}, note=[Accessed: 08-September-2026]}