From 6e87b4f6e906f708112bc247cb5aa096714b7e29 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Mon, 20 Dec 2021 09:34:09 +0100 Subject: [PATCH] FIx a bug in SD::BatchOptimizer::extract() --- source/differentiation/sd/symengine_optimizer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/differentiation/sd/symengine_optimizer.cc b/source/differentiation/sd/symengine_optimizer.cc index db0c0840bb..2a2fc84cb3 100644 --- a/source/differentiation/sd/symengine_optimizer.cc +++ b/source/differentiation/sd/symengine_optimizer.cc @@ -601,7 +601,7 @@ namespace Differentiation new_map_expr.get_value().__str__()) { map_dep_expr_vec_entry[func] = e.second; - return evaluate(func); + return extract(func, cached_evaluation); } } -- 2.39.5