Definition at line 15 of file uexprpoly.h.
◆ UExprDict() [1/6]
SymEngine::UExprDict::UExprDict |
( |
| ) |
|
|
inline |
◆ ~UExprDict()
SymEngine::UExprDict::~UExprDict |
( |
| ) |
|
|
inline |
◆ UExprDict() [2/6]
SymEngine::UExprDict::UExprDict |
( |
UExprDict && |
other | ) |
|
|
inline |
Definition at line 21 of file uexprpoly.h.
23 {
24 }
void hash_combine(hash_t &seed, const T &v)
◆ UExprDict() [3/6]
SymEngine::UExprDict::UExprDict |
( |
const int & |
i | ) |
|
|
inline |
◆ UExprDict() [4/6]
◆ UExprDict() [5/6]
◆ UExprDict() [6/6]
◆ __str__()
Definition at line 51 of file uexprpoly.h.
52 {
57
61 } else {
62 t = detail::poly_print(
it->second);
63 if (t[0] == '-') {
65 } else {
67 }
68 }
70 continue;
71 }
72
73 if (
it->second == 1
or it->second == -1) {
74
75
79 } else {
81 .as_integer_class()
82 < 0) {
84 << "-"
85 << " ";
86 } else {
88 << "+"
89 << " ";
90 }
91 }
92 }
93
94 else if (
it->second == 0)
95 continue;
96
97 else {
98
99
101 o << detail::poly_print(
it->second) <<
"*";
102 } else {
103 t = detail::poly_print(
it->second);
104 if (t[0] == '-') {
106 } else {
108 }
110 }
111 }
113
115 o <<
"**" <<
it->first;
116 }
else if (
it->first < 0) {
117 o <<
"**(" <<
it->first <<
")";
118 }
119
120
122 }
124 }
◆ compare()
Definition at line 146 of file uexprpoly.h.
147 {
149 }
int unified_compare(const T &a, const T &b)
◆ find_cf()
Definition at line 151 of file uexprpoly.h.
152 {
154 return dict_.
at(
deg);
155 else
156 return Expression(0);
157 }
◆ get_basic()
Definition at line 127 of file uexprpoly.h.
128 {
130 umap_basic_num dict;
131 RCP<const Number> coeff = zero;
132 for (
const auto &
it : dict_) {
138 } else {
140 it.second.get_basic());
141 }
142 }
144 }
static RCP< const Basic > from_dict(const RCP< const Number > &coef, umap_basic_num &&d)
Create an appropriate instance from dictionary quickly.
static void coef_dict_add_term(const Ptr< RCP< const Number > > &coef, umap_basic_num &d, const RCP< const Number > &c, const RCP< const Basic > &term)
Updates the numerical coefficient and the dictionary.
RCP< const Basic > mul(const RCP< const Basic > &a, const RCP< const Basic > &b)
Multiplication.
RCP< const Symbol > symbol(const std::string &name)
inline version to return Symbol
std::enable_if< std::is_integral< T >::value, RCP< constInteger > >::type integer(T i)
◆ operator/=()
Definition at line 45 of file uexprpoly.h.
46 {
48 return *this;
49 }
◆ operator/
Definition at line 40 of file uexprpoly.h.
41 {
42 return a * (1 / b);
43 }
◆ operator<<
The documentation for this class was generated from the following file:
- /home/runner/work/symengine/symengine/symengine/polys/uexprpoly.h