You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into overriding __richcmp__. However, this only works for the comparison ExactReals().one() == AA(1) and not for AA(1) == ExactReals().one().
Setting the Parent_richcmp_element_without_coercion flag also won't help since it disable all coercion. Even when comparing ExactReals().one() == QQ(1).
The proper solution would be to support ExactReals(AA) so there is a common parent we can coerce into. However, the elements of this ring would then not be contained in a single exactreal::Module.
Currently, containment in number fields does not always work correctly:
The underlying issue is that
ExactReals().one()
andAA(ExactReals().one())
cannot be coerced into a common parent.The text was updated successfully, but these errors were encountered: