fmpqxx a(3, 4u);
a.num() = 5;
std::cout << (a+a).num() << '\n';
In particular, depending on the object type, num() will return a reference to the denominator, or constant reference, or an expression template.
After that, I began adding member functions for all global functions. So one can e.g. do a.divrem(b) instead of divrem(a, b). As is to be expected, this process is quite laborious (simply because there are a lot of functions in flint), and I will have to continue it tomorrow. Then I will also update the documentation.
No comments:
Post a Comment