uintpoly_piranha.cpp
1 #include <symengine/symbol.h>
2 #include <symengine/expression.h>
4 
5 namespace SymEngine
6 {
7 
8 UIntPolyPiranha::UIntPolyPiranha(const RCP<const Basic> &var, pintpoly &&dict)
9  : UPiranhaPoly(var, std::move(dict)){SYMENGINE_ASSIGN_TYPEID()}
10 
11  hash_t UIntPolyPiranha::__hash__() const
12 {
13  hash_t seed = SYMENGINE_UINTPOLYPIRANHA;
14  seed += get_poly().hash();
15  seed += get_var()->hash();
16  return seed;
17 }
18 
19 URatPolyPiranha::URatPolyPiranha(const RCP<const Basic> &var, pratpoly &&dict)
20  : UPiranhaPoly(var, std::move(dict)){SYMENGINE_ASSIGN_TYPEID()}
21 
22  hash_t URatPolyPiranha::__hash__() const
23 {
24  hash_t seed = SYMENGINE_URATPOLYPIRANHA;
25  seed += get_poly().hash();
26  seed += get_var()->hash();
27  return seed;
28 }
29 } // namespace SymEngine
T move(T... args)
Main namespace for SymEngine package.
Definition: add.cpp:19
STL namespace.