diff options
author | Haavard <havardpe@yahoo-inc.com> | 2017-02-09 14:44:10 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2017-02-10 16:07:47 +0000 |
commit | a9e64013b4db64cb6ec86be6dcc0076282ab8858 (patch) | |
tree | ca16fa7cb4d1efe5a4ccbf8380e235bf15b8baa6 /eval/src/apps | |
parent | 461694eed494a7dc0f365725439beee2089eaec5 (diff) |
wire in immediate evaluation of new syntax
Diffstat (limited to 'eval/src/apps')
-rw-r--r-- | eval/src/apps/eval_expr/eval_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/apps/eval_expr/eval_expr.cpp b/eval/src/apps/eval_expr/eval_expr.cpp index 06566f9ed80..61d1be0c054 100644 --- a/eval/src/apps/eval_expr/eval_expr.cpp +++ b/eval/src/apps/eval_expr/eval_expr.cpp @@ -19,8 +19,8 @@ int main(int argc, char **argv) { fprintf(stderr, "expression error: %s\n", function.get_error().c_str()); return 1; } - InterpretedFunction::Context ctx; InterpretedFunction interpreted(SimpleTensorEngine::ref(), function, NodeTypes()); + InterpretedFunction::Context ctx(interpreted); double result = interpreted.eval(ctx).as_double(); fprintf(stdout, "%.32g\n", result); return 0; |