> On 18/10/2016, at 17:18, Victor Shoup <sh...@cs.nyu.edu> wrote:
> I see.  I don't do it on purpose... 
> I looked at some singular source files, but I don't know if I have the most 
> recent. But it looks like they are trying to look inside ntl's ZZ 
> representation.  That's a big no no. Right now, the only semi efficient way 
> to do this with the existing interface is to use ZZToBytes (or something like 
> that).  I could add some special routines for direct gmp bignum conversions, 
> if there was a demand for that. 

The code is not recent as far as I can tell. The stated purpose here:
/// NAME: convertZZ2CF
/// Routine for conversion of integers represented in NTL as Type ZZ to
/// integers in Factory represented as canonicalform.
/// To guarantee the correct execution of the algorithm the characteristic
/// has to equal zero.
/// INPUT:  The value coefficient of type ZZ that has to be converted
/// OUTPUT: The converted Factory-integer of type canonicalform
And in some case they use the quoted snippet.
This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more

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.

Reply via email to