Public Types | |
typedef Expression | coef_type |
Public Types inherited from SymEngine::USymEnginePoly< UExprDict, UExprPolyBase, UExprPoly > | |
using | Cf = typename UExprPolyBase< UExprDict, UExprPoly >::coef_type |
using | Key = typename Container::key_type |
typedef std::map< Key, Cf >::const_iterator | iterator |
typedef std::map< Key, Cf >::const_reverse_iterator | r_iterator |
Public Types inherited from SymEngine::UExprPolyBase< Cont, Poly > | |
typedef Expression | coef_type |
Public Types inherited from SymEngine::UPolyBase< Cont, Poly > | |
typedef Cont | container_type |
Public Member Functions | |
void | accept (Visitor &v) const override |
void | accept (EvalRealDoubleVisitorFinal &v) const override |
UExprPoly (const RCP< const Basic > &var, UExprDict &&dict) | |
Constructor of UExprPoly class. | |
hash_t | __hash__ () const override |
Expression | max_coef () const |
Expression | eval (const Expression &x) const |
Evaluates the UExprPoly at value x. | |
bool | is_zero () const |
bool | is_one () const |
bool | is_minus_one () const |
bool | is_integer () const |
bool | is_symbol () const |
bool | is_mul () const |
bool | is_pow () const |
Public Member Functions inherited from SymEngine::USymEnginePoly< UExprDict, UExprPolyBase, UExprPoly > | |
USymEnginePoly (const RCP< const Basic > &var, UExprDict &&dict) | |
int | compare (const Basic &o) const |
bool | is_canonical (const UExprDict &dict) const |
Cf | eval (const Cf &x) const |
const std::map< Key, Cf > & | get_dict () const |
Cf | get_coeff (Key x) const |
iterator | begin () const |
iterator | end () const |
r_iterator | obegin () const |
r_iterator | oend () const |
int | size () const |
Public Member Functions inherited from SymEngine::UExprPolyBase< Cont, Poly > | |
UExprPolyBase (const RCP< const Basic > &var, Cont &&container) | |
int | get_degree () const |
RCP< const Basic > | as_symbolic () const |
Public Member Functions inherited from SymEngine::UPolyBase< Cont, Poly > | |
UPolyBase (const RCP< const Basic > &var, Cont &&container) | |
bool | __eq__ (const Basic &o) const override |
const RCP< const Basic > & | get_var () const |
const Cont & | get_poly () const |
vec_basic | get_args () const override |
Returns the list of arguments. | |
Public Member Functions inherited from SymEngine::Basic | |
TypeID | get_type_code () const |
Basic () | |
Constructor. | |
Basic (const Basic &)=delete | |
Delete the copy constructor and assignment. | |
Basic & | operator= (const Basic &)=delete |
Assignment operator in continuation with above. | |
Basic (Basic &&)=delete | |
Delete the move constructor and assignment. | |
Basic & | operator= (Basic &&)=delete |
Assignment operator in continuation with above. | |
hash_t | hash () const |
bool | __neq__ (const Basic &o) const |
true if this is not equal to o . More... | |
int | __cmp__ (const Basic &o) const |
Comparison operator. | |
std::string | __str__ () const |
std::string | dumps () const |
Returns a string of the instance serialized. | |
RCP< const Basic > | subs (const map_basic_basic &subs_dict) const |
Substitutes 'subs_dict' into 'self'. | |
RCP< const Basic > | xreplace (const map_basic_basic &subs_dict) const |
virtual RCP< const Basic > | expand_as_exp () const |
expands the special function in terms of exp function | |
RCP< const Basic > | diff (const RCP< const Symbol > &x, bool cache=true) const |
Public Member Functions inherited from SymEngine::EnableRCPFromThis< Basic > | |
RCP< Basic > | rcp_from_this () |
Get RCP<T> pointer to self (it will cast the pointer to T) | |
RCP< const Basic > | rcp_from_this () const |
Get RCP<const T> pointer to self (it will cast the pointer to const T) | |
RCP< const T2 > | rcp_from_this_cast () const |
Get RCP<T2> pointer to self (it will cast the pointer to T2) | |
unsigned int | use_count () const |
Static Public Attributes | |
static const TypeID | type_code_id = SYMENGINE_UEXPRPOLY |
Additional Inherited Members | |
Static Public Member Functions inherited from SymEngine::USymEnginePoly< UExprDict, UExprPolyBase, UExprPoly > | |
static RCP< const UExprPoly > | from_vec (const RCP< const Basic > &var, const std::vector< Cf > &v) |
static UExprDict | container_from_dict (const RCP< const Basic > &var, std::map< Key, Cf > &&d) |
static enable_if_t< is_a_UPoly< FromPoly >::value, RCP< const UExprPoly > > | from_poly (const FromPoly &p) |
Static Public Member Functions inherited from SymEngine::UExprPolyBase< Cont, Poly > | |
static RCP< const Poly > | from_dict (const RCP< const Basic > &var, std::map< int, Expression > &&d) |
Static Public Member Functions inherited from SymEngine::UPolyBase< Cont, Poly > | |
static RCP< const Poly > | from_container (const RCP< const Basic > &var, Cont &&d) |
Static Public Member Functions inherited from SymEngine::Basic | |
static RCP< const Basic > | loads (const std::string &) |
Creates an instance of a serialized string. | |
Data Fields inherited from SymEngine::Basic | |
TypeID | type_code_ |
Definition at line 160 of file uexprpoly.h.
|
overridevirtual |
Calculates the hash of the given SymEngine class. Use Basic.hash() which gives a cached version of the hash.
Implements SymEngine::UPolyBase< Cont, Poly >.
Definition at line 11 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_integer | ( | ) | const |
true
if integer Definition at line 63 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_minus_one | ( | ) | const |
true
if -1
Definition at line 56 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_mul | ( | ) | const |
true
if mul Definition at line 76 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_one | ( | ) | const |
true
if 1
Definition at line 50 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_pow | ( | ) | const |
true
if pow Definition at line 83 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_symbol | ( | ) | const |
true
if symbol Definition at line 70 of file uexprpoly.cpp.
bool SymEngine::UExprPoly::is_zero | ( | ) | const |
true
if 0
Definition at line 45 of file uexprpoly.cpp.
|
static |
Type_code_id shared by all instances
Definition at line 163 of file uexprpoly.h.