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

Function evaluate

test/compute-engine/collections.test.ts:4–6  ·  view source on GitHub ↗
(expr: Expression)

Source from the content-addressed store, hash-verified

2import { ComputeEngine } from '../../src/compute-engine';
3import { isTensor } from '../../src/compute-engine/boxed-expression/type-guards';
4import { engine, exprToString } from '../utils';
5
6function evaluate(expr: Expression): string {
7 return exprToString(engine.expr(expr)?.evaluate({ materialization: true }));
8}
9

Callers 1

Calls 3

exprToStringFunction · 0.90
evaluateMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected