 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Mang Guest
|
Posted: Sat Oct 15, 2005 2:03 pm Post subject: quadruple / multiple precision Bibliotheken |
|
|
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
|
Posted: Sat Oct 15, 2005 6:51 pm Post subject: Re: quadruple / multiple precision Bibliotheken |
|
|
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
|
Posted: Mon Oct 17, 2005 8:42 pm Post subject: Re: quadruple / multiple precision Bibliotheken |
|
|
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
|
Posted: Tue Oct 18, 2005 8:33 am Post subject: Re: quadruple / multiple precision Bibliotheken |
|
|
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 |
|
 |
|
|
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
|
|