()
| 28 | } |
| 29 | |
| 30 | export 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. */ |
| 42 | export interface FreeFunctionOptions { |
no outgoing calls
no test coverage detected