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();
49 const SymEngine::map_basic_basic &substitution_map)
53 sub_map[Expression(entry.
first)] = SD::Expression(entry.
second);
63 SE::vec_basic symb_vec;
66 symb_vec.push_back(entry.get_RCP());
74 const SE::vec_basic &symbol_vector)
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.emplace_back(SD::Expression(entry.
first),
107 SD::Expression(entry.
second));
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
SD::types::symbol_vector extract_symbols(const SD::types::substitution_map &substitution_values)
std::vector< std::pair< Expression, Expression > > convert_basic_pair_vector_to_expression_pair_vector(const SymEngine::vec_pair &symbol_value_vector)
SD::types::substitution_map convert_basic_map_to_expression_map(const SymEngine::map_basic_basic &substitution_map)
SD::types::symbol_vector convert_basic_vector_to_expression_vector(const SymEngine::vec_basic &symbol_vector)
SymEngine::map_basic_basic convert_expression_map_to_basic_map(const SD::types::substitution_map &substitution_map)
SymEngine::vec_basic convert_expression_vector_to_basic_vector(const SD::types::symbol_vector &symbol_vector)
std::vector< SD::Expression > symbol_vector
std::map< SD::Expression, SD::Expression, internal::ExpressionKeyLess > substitution_map