New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Universal cyclotomic field breaks for moderate order #14240
Comments
comment:1
I think the code tries to put denominators in
especially if you clear denominator by taking an |
comment:2
Attachment: 14240-universal_cyclotomic_field_mpq.patch.gz |
comment:3
Replying to @sagetrac-mraum: Thanks for providing a patch, and for cleaning some of my rudimentary coding in cython! Have you done some tests do check how your changes influenced the performance? I can do some tests, but I think it would also be good to check if there are no new memory leaks in the code... Cheers, Christian |
comment:4
You can check whether malloc's and free's match and whether for each init there is one clear. I haven't tested performance, but since I consider the previous version as partially incorrect (it fails to work for the very common example given in the description), this is not so much a matter for me. If you want such test, I can provided them at some point in summer. |
comment:5
Replying to @sagetrac-mraum:
Here are some tests; I for myself don't care that the performance goes down quite a bit - maybe someone can do a similar test to see if the difference is indeed that big (the tests can only be performed if #14497 is applied). But I would prefer to avoid it, if easily possible.
|
Work Issues: assess performance impact |
comment:12
now works with the libgap version. |
UniversalCyclotomicField seeming is unable to handle moderate orders - even though I don't see how an overflow could occur when multiplying elements of order 245. Here is how I found the problem
The last line gives an OverflowError:
The element which I have used concretely (but I have tried several random elements) is
CC: @stumpc5 @sagetrac-mraum
Component: number fields
Keywords: ucf, overflow
Work Issues: assess performance impact
Issue created by migration from https://trac.sagemath.org/ticket/14240
The text was updated successfully, but these errors were encountered: