18 #ifdef DEAL_II_WITH_SYMENGINE
29 namespace SE = ::SymEngine;
39 SE::map_basic_basic sub_map;
41 sub_map[entry.first.get_RCP()] = entry.second.get_RCP();
53 sub_map[Expression(entry.first)] = SD::Expression(entry.second);
63 SE::vec_basic symb_vec;
66 symb_vec.push_back(entry.get_RCP());
79 symb_vec.push_back(SD::Expression(entry));
89 symbols.reserve(substitution_values.size());
91 for (
const auto &substitution : substitution_values)
92 symbols.push_back(substitution.first);
99 std::vector<std::pair<SD::Expression, SD::Expression>>
101 const SymEngine::vec_pair &symbol_value_vector)
103 std::vector<std::pair<SD::Expression, SD::Expression>> symb_val_vec;
104 symb_val_vec.reserve(symbol_value_vector.size());
105 for (
const auto &entry : symbol_value_vector)
106 symb_val_vec.push_back(std::make_pair(SD::Expression(entry.first),
107 SD::Expression(entry.second)));
121 #endif // DEAL_II_WITH_SYMENGINE