On 08/05/15 10:52, Thierry Dumont wrote: > Le 08/05/2015 10:23, Vincent Delecroix a écrit : >> Bonjour Thierry, >> >> Could you post your matrices Prec, M, mfeEast? I am not able to >> reproduce the problem with change_ring... >> >> Vincent >> > > Hello Vincent. > Yes, > I join a part of my code, which reproduces the problem...
Hello, It is not an infinite loop. The problem is that suddenly, the numbers change their parent from AA (=Algebraic Real Field) to QQbar (=Algebraic Field). I have to look more carefully in your code where this does happen. If you have an algebraic number that is not known to be real, then the conversion to RDF checks that the imaginary part is zero. It is currently very slow but there is some work in this direction [1]. I am pretty sure that if you are very patient it should end up with something, but it might takes several hours! Workaround: sage: ZZ = matrix(AA, [z.real() for z in Z.list()]) sage: ZZ.change_ring(RDF) Vincent [1] http://trac.sagemath.org/ticket/18333 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.