17#ifdef DEAL_II_WITH_SYMENGINE
28 namespace SE = ::SymEngine;
38 SE::map_basic_basic sub_map;
40 sub_map[entry.
first.get_RCP()] = entry.
second.get_RCP();
48 const SymEngine::map_basic_basic &substitution_map)
52 sub_map[Expression(entry.
first)] = SD::Expression(entry.
second);
62 SE::vec_basic symb_vec;
65 symb_vec.push_back(entry.get_RCP());
73 const SE::vec_basic &symbol_vector)
78 symb_vec.emplace_back(entry);
88 symbols.reserve(substitution_values.size());
90 for (
const auto &substitution : substitution_values)
91 symbols.push_back(substitution.
first);
98 std::vector<std::pair<SD::Expression, SD::Expression>>
100 const SymEngine::vec_pair &symbol_value_vector)
102 std::vector<std::pair<SD::Expression, SD::Expression>> symb_val_vec;
103 symb_val_vec.reserve(symbol_value_vector.size());
104 for (
const auto &entry : symbol_value_vector)
105 symb_val_vec.emplace_back(SD::Expression(entry.
first),
106 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