Loading...
Searching...
No Matches
SymEngine::BasicToMExprPoly Class Reference
+ Inheritance diagram for SymEngine::BasicToMExprPoly:
+ Collaboration diagram for SymEngine::BasicToMExprPoly:

Public Member Functions

 BasicToMExprPoly (const set_basic &gens)
 
void bvisit (const Rational &x)
 
void dict_set (vec_int pow, const Basic &x)
 
- Public Member Functions inherited from SymEngine::BasicToMPolyBase< MExprPoly, BasicToMExprPoly >
 BasicToMPolyBase (const set_basic &gens_)
 
Dict apply (const Basic &b)
 
void dict_set (Vec pow, const Basic &x)
 
void bvisit (const Pow &x)
 
void bvisit (const Add &x)
 
void bvisit (const Mul &x)
 
void bvisit (const Integer &x)
 
void bvisit (const Basic &x)
 

Additional Inherited Members

- Public Types inherited from SymEngine::BasicToMPolyBase< MExprPoly, BasicToMExprPoly >
using Dict = typename P::container_type
 
using Vec = typename Dict::vec_type
 
- Data Fields inherited from SymEngine::BasicToMPolyBase< MExprPoly, BasicToMExprPoly >
Dict dict
 
set_basic gens
 
std::unordered_map< RCP< const Basic >, vec_basic, RCPBasicHash, RCPBasicKeyEqgens_pow
 
umap_basic_uint gens_map
 

Detailed Description

Definition at line 505 of file basic_conversions.h.

Constructor & Destructor Documentation

◆ BasicToMExprPoly()

SymEngine::BasicToMExprPoly::BasicToMExprPoly ( const set_basic gens)
inline

Definition at line 511 of file basic_conversions.h.

511: BasicToMPolyBase(gens) {}

Member Function Documentation

◆ bvisit()

void SymEngine::BasicToMExprPoly::bvisit ( const Rational x)
inline

Definition at line 513 of file basic_conversions.h.

514 {
515 Vec v(gens.size(), 0);
516 dict = MExprPoly::container_from_dict(gens, {{v, x.rcp_from_this()}});
517 }
T size(T... args)

◆ dict_set()

void SymEngine::BasicToMExprPoly::dict_set ( vec_int  pow,
const Basic x 
)
inline

Definition at line 519 of file basic_conversions.h.

520 {
521 dict = MExprPoly::container_from_dict(gens, {{pow, x.rcp_from_this()}});
522 }
T pow(T... args)

The documentation for this class was generated from the following file: