Open saraedum opened 3 years ago
Directly related to #144
Also, it is customary to implement addmul/submul
on the C objects. Such interface exists in arb (void arb_addmul(arb_t z, const arb_t x, const arb_t y, slong prec)
and void arb_submul(arb_t z, const arb_t x, const arb_t y, slong prec)
) but not in antic.
Currently, writing
a += b*c
creates too many temporaries in C++.We should provide a specialized method to perform such common operations in the C++ interface.
Ideally, we could use yap to rewriteCreating yap machinery just for this is too much work. We should just provide a function ona += b*c
to use such a specialized implementation.renf_elem_class
to perform these operations.