These are chat archives for symengine/symengine
basic_wrapperfrom my fork at
firstname.lastname@example.org:srajangarg/symengine.git. I have tried to implement the
UnivariateIntclass. I have removed the other tests for now (and added a new folder to test the new class
tests/polynomial/univariate_int_generic.cpp) I am not able to figure out what's going wrong. If you run that test executable, the variable
Phas the right value in it's container! But the print function isn't responding correctly! I have put may print statements in the constructors and other places to help debug, but I still can't figure it out.
UnivariateExprPolynomialwhich has overloaded operators
RCP<const UnivariateInt> Phas the right
container_stored in it right?
get_container? How was this handled in
UnivariateIntPolynomials container is
map_int_Exprbut the method signature is
inline const map_int_Expr &get_dict() const
get_containerwill give a new copy of the container.
const Container &get_container() const
get_container().rend()are pointers to different containers
constmeans that the returned Container is a constant value and the caller can't change the value returned
&means a reference to the object, so that we are not returning a copy of the container, but only a pointer to a container
constmeans the polynomial object is not changed when this method is called
const &xas an argument to a function. But here, it's just a return value of the function.
==is defined on the values (and the keys) in a map,
==will work on the map too.