On 19/10/16 23:57, Victor Shoup wrote:
Sure. Will do.
For people not on libsingular-devel, Hannes' answer: ========== The problem is a fast/convinient conversion between long integers in factory of type CanonicalForm (which is in principle a mpz_t number) and long integers in NTL of type ZZ (which is, if I understood it correctly, analogue to the internal of a mpz_t). (There are routines to access the mpz_t representation of a CanonicalForm in factory and to construct a CanonicalForm from a mpz_t) The current implementation uses a string representation in basis 16 (NTL->factory) resp. 10 (factory->NTL), which is neither nice nor fast, but was easy to implement and works: mpn_get_str converts the NTL-ZZ-number to a string and mpz_init_set_str creates then the GMP-mpz_t-number (and then the CanonicalForm number) The reverse uses a string with basis 10: mpz_get_str from factory to string and conv from string to NTL ZZ ========= Francois -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.