Loading...
Searching...
No Matches
SymEngine::BasicToUIntPoly< Poly > Class Template Reference
+ Inheritance diagram for SymEngine::BasicToUIntPoly< Poly >:
+ Collaboration diagram for SymEngine::BasicToUIntPoly< Poly >:

Public Member Functions

 BasicToUIntPoly (const RCP< const Basic > &gen)
 
void bvisit (const Rational &x)
 
void dict_set (unsigned int pow, const Basic &x)
 
- Public Member Functions inherited from SymEngine::BasicToUPolyBase< Poly, BasicToUIntPoly< Poly > >
 BasicToUPolyBase (const RCP< const Basic > &gen_)
 
apply (const Basic &b)
 
void dict_set (unsigned int 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 Poly &x)
 
void bvisit (const Basic &x)
 

Additional Inherited Members

- Public Types inherited from SymEngine::BasicToUPolyBase< Poly, BasicToUIntPoly< Poly > >
using D = typename P::container_type
 
- Data Fields inherited from SymEngine::BasicToUPolyBase< Poly, BasicToUIntPoly< Poly > >
RCP< const Basicgen
 
dict
 

Detailed Description

template<typename Poly>
class SymEngine::BasicToUIntPoly< Poly >

Definition at line 190 of file basic_conversions.h.

Constructor & Destructor Documentation

◆ BasicToUIntPoly()

template<typename Poly >
SymEngine::BasicToUIntPoly< Poly >::BasicToUIntPoly ( const RCP< const Basic > &  gen)
inline

Definition at line 196 of file basic_conversions.h.

197 : BasicToUPolyBase<Poly, BasicToUIntPoly<Poly>>(gen)
198 {
199 }

Member Function Documentation

◆ bvisit()

template<typename Poly >
void SymEngine::BasicToUIntPoly< Poly >::bvisit ( const Rational x)
inline

Definition at line 201 of file basic_conversions.h.

202 {
203 throw SymEngineException("Non-integer found");
204 }

◆ dict_set()

template<typename Poly >
void SymEngine::BasicToUIntPoly< Poly >::dict_set ( unsigned int  pow,
const Basic x 
)
inline

Definition at line 206 of file basic_conversions.h.

207 {
208 if (is_a<const Integer>(x))
209 this->dict = Poly::container_from_dict(
210 this->gen,
211 {{pow, down_cast<const Integer &>(x).as_integer_class()}});
212 else
213 throw SymEngineException("Non-integer found");
214 }
T pow(T... args)

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