These are chat archives for symengine/symengine
Is this inline wrt to SymEngine design planning?
(in class Rational) /*! Constructs Rational as n/d, where n, d can be any Integers. If n/d is an * Integer, it will return an Integer instead. * */ static RCP<const Number> from_two_ints(const Integer &n, const Integer &d);
My opinion is it does too much. Now, I cannot write a specialized
Rational::from_two_ints that returns a
RCP<const Rational> because I cannot overload the return value. How to resolve?
mpqdirectly, and only convert to
Rationalat the very end.