MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / getDefaultEngine

Function getDefaultEngine

src/compute-engine/free-functions.ts:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export function getDefaultEngine(): IComputeEngine {
31 if (!_defaultEngine) {
32 if (!_defaultEngineFactory)
33 throw new Error(
34 'ComputeEngine factory not registered. Import from the main module.'
35 );
36 _defaultEngine = _defaultEngineFactory();
37 }
38 return _defaultEngine!;
39}
40
41/** Options accepted by the free functions that take a LaTeX/AsciiMath string. */
42export interface FreeFunctionOptions {

Callers 6

toExpressionFunction · 0.85
parseFunction · 0.85
exprFunction · 0.85
declareFunction · 0.85
assignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected