[ntl] NTL RR class and long long integer
Friedrich Wiemer
friedrichwiemer at gmail.com
Thu Jul 9 16:14:31 CDT 2015
Hi Luigi,
did you try to convert RR to ZZ and then to int64?
ZZ is NTLs multiprecision integer type, while RR is for multiprecision floats.
Cheers, Friedrich
On July 9, 2015 11:08:08 PM CEST, Luigi Candurro <luigicandurro at virgilio.it> wrote:
>Hi all,
>
>I have got i touch with NTL (WinNTL-9_2_0) few days ago, I have
>successfully installed it
>(on Windows 7 64-bit and Visual C++ 2008) and now I am doing some
>testing.
>
>I have found that conversion operator conv<T> allows to convert between
>
>RR class and some C integer types (int, long int and their unsigned
>versions), but does not cover the 64-bit integer type __int64 or long
>long and its unsigned version. I have made the conversion functions I
>need from RR to __int64 and unsigned __int64, but I had to convert RR
>into string, and string into 64-bit integer, very annoying and
>unefficient.
>
>Is there a way to add conversion between RR and 64-bit (long long)
>integer?
>
>Bye
>
>Luigi
>
>_______________________________________________
>ntl mailing list
>ntl at shoup.net
>http://shoup.net/mailman/listinfo/ntl_shoup.net
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20150709/fd88249b/attachment.html>
More information about the ntl
mailing list