C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

quadruple / multiple precision Bibliotheken

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Thomas Mang
Guest





PostPosted: Sat Oct 15, 2005 2:03 pm    Post subject: quadruple / multiple precision Bibliotheken Reply with quote




Hallo,

Ich suche C++ - Bibliotheken für erweiterte Fließkommagenauigkeit, z.B. ab
128bit aufwärts. Es geht mir um 2 grundlegende Typen von Fließkommazahlen:

a) Präzision compile-time fixiert, z.B. genau 128bits. Dafür vergleichsmäßig
schnell, keine dyn. Speicheralloziierung etc.
Von der Idee her ein template a la

template <int Bits>
class precise_floating;

b) Präzision run-time basierend / multiple precision. Natürlich ist zu
erwarten, dass das ganze dann viel langsamer ist und dyn. REssourcen
benötigt.


Wichtig ist, die Bibliothek sollte modern sein (z.B. Verwendung von
exceptions, namespaces etc.), viel wichtiger jedoch: Sie sollte portabel
sein, auch auf OS-Ebene.
Wenn jemand mit solch einer Bibliothek gute Erfahrung gemacht (Typ a) oder
b)), bitte hier link posten, vielleicht auch negative Erfahrungen.


Danke,

Thomas

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
Back to top
Babak Pourat
Guest





PostPosted: Sat Oct 15, 2005 6:51 pm    Post subject: Re: quadruple / multiple precision Bibliotheken Reply with quote



Thomas Mang schrieb:
Quote:

Hallo,

Ich suche C++ - Bibliotheken für erweiterte Fließkommagenauigkeit, z.B. ab
128bit aufwärts. Es geht mir um 2 grundlegende Typen von Fließkommazahlen:

a) Präzision compile-time fixiert, z.B. genau 128bits. Dafür vergleichsmäßig
schnell, keine dyn. Speicheralloziierung etc.
Von der Idee her ein template a la

template class precise_floating;

b) Präzision run-time basierend / multiple precision. Natürlich ist zu
erwarten, dass das ganze dann viel langsamer ist und dyn. REssourcen
benötigt.


Wichtig ist, die Bibliothek sollte modern sein (z.B. Verwendung von
exceptions, namespaces etc.), viel wichtiger jedoch: Sie sollte portabel
sein, auch auf OS-Ebene.
Wenn jemand mit solch einer Bibliothek gute Erfahrung gemacht (Typ a) oder
b)), bitte hier link posten, vielleicht auch negative Erfahrungen.


Ich hatt vor Jahren mal C-XSC zu tun, wobei ich nur das Rechnen mit
Intervallen benutzte. Soweit ich mich erinnere war es Vernünftig(!!??)
siehe
http://www.math.uni-wuppertal.de/~xsc/

Babak

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Gerhard Wesp
Guest





PostPosted: Mon Oct 17, 2005 8:42 pm    Post subject: Re: quadruple / multiple precision Bibliotheken Reply with quote



Thomas Mang <a9804814 (AT) unet (DOT) univie.ac.at> wrote:
Quote:
Ich suche C++ - Bibliotheken f?r erweiterte Flie?kommagenauigkeit, z.B. ab

Habe vor einigen Jahren mal mit NTL gearbeitet und war recht zufrieden.
IIRC bietet sie (a) und (b). http://shoup.net/ntl/.

Lass uns wissen, ob dir damit geholfen ist!

LG
-Gerhard
--
o o
Gerhard Wesp | http://www.cosy.sbg.ac.at/~gwesp/
_/ See homepage for email address!

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Falk Tannhäuser
Guest





PostPosted: Tue Oct 18, 2005 8:33 am    Post subject: Re: quadruple / multiple precision Bibliotheken Reply with quote

Thomas Mang wrote:
Quote:
Ich suche C++ - Bibliotheken für erweiterte Fließkommagenauigkeit, z.B. ab
128bit aufwärts. Es geht mir um 2 grundlegende Typen von Fließkommazahlen:

GMP <http://www.swox.com/gmp> fällt mir ein - stellt ganze (mpz_t),
rationale (mpq_t) und Gleitkommazahlen (mpf_t) zur Verfügung.
Bisher habe ich aber nur erstere benutzt - ohne größere Probleme auf
ix86 mit x>=3 sowie auf PPC. C++-Wrapper (mp[zqf]_class) für diese
Typen gibt es ebenfalls, auf Namespaces / Exceptions wurde aber verzichtet.
Allerdings wird - soviel ich weiß - stets dynamisch alloziert (entspräche
(b) für dich).

MfG
Falk

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.