Definition at line 38 of file uratpoly.h.
◆ URatPoly()
SymEngine::URatPoly::URatPoly |
( |
const RCP< const Basic > & |
var, |
|
|
URatDict && |
dict |
|
) |
| |
Constructor of URatPoly class.
Definition at line 6 of file uratpoly.cpp.
7 : USymEnginePoly(
8 var,
std::move(dict)){SYMENGINE_ASSIGN_TYPEID()
9 SYMENGINE_ASSERT(is_canonical(get_poly()))}
◆ __hash__()
hash_t SymEngine::URatPoly::__hash__ |
( |
| ) |
const |
|
override |
- Returns
- size of the hash
Definition at line 11 of file uratpoly.cpp.
12{
13 hash_t seed = SYMENGINE_URATPOLY;
14
15 seed += get_var()->hash();
16 for (const auto &it : get_poly().dict_) {
17 hash_t temp = SYMENGINE_URATPOLY;
18 hash_combine<unsigned int>(temp, it.first);
19 hash_combine<long long int>(temp, mp_get_si(get_num(it.second)));
20 hash_combine<long long int>(temp, mp_get_si(get_den(it.second)));
21 seed += temp;
22 }
23 return seed;
24}
◆ type_code_id
const TypeID SymEngine::URatPoly::type_code_id = SYMENGINE_URATPOLY |
|
static |
Type_code_id shared by all instances
Definition at line 41 of file uratpoly.h.
The documentation for this class was generated from the following files:
- /home/runner/work/symengine/symengine/symengine/polys/uratpoly.h
- /home/runner/work/symengine/symengine/symengine/polys/uratpoly.cpp