These are chat archives for symengine/symengine

11th
Nov 2015
Ralf Stephan
@rwst
Nov 11 2015 08:03
is there an example on how to create an RCP of a piranha type like polynomial. Should I use a std::unique_ptr instead?
Isuru Fernando
@isuruf
Nov 11 2015 14:09
@rwst, SymEngine's RCP implementation relies on a member variable of the class it wraps, so you cannot use it. std::unique_ptr or a simple class like https://github.com/symengine/symengine/blob/e5660d01b62e9f68e2e865dae83d8a453a5f2bdb/symengine/real_mpfr.h#L24 would do
Ralf Stephan
@rwst
Nov 11 2015 14:20
Thought so :smile: