Integral type with no upper limit?
Is there an integral type in Boost that has no upper limit? The only physical limit would be the amount of memory on the system. And of course, the larger the number, the heavier the math is on such an object, because more cycles are required.
2009/5/25 Robert Dailey
Is there an integral type in Boost that has no upper limit? The only physical limit would be the amount of memory on the system. And of course, the larger the number, the heavier the math is on such an object, because more cycles are required.
People keep proposing them; The latest I know of is mp_int, which can be found at http://www.boostpro.com/vault/index.php?action=downloadfile&filename=mp_math_v03.zip&directory=Math%20-%20Numerics
Scott McMurray wrote:
Is there an integral type in Boost that has no upper limit? The only physical limit would be the amount of memory on the system. And of course, the larger the number, the heavier the math is on such an object, because more cycles are required.
People keep proposing them; The latest I know of is mp_int, which can be found at ...
Perhaps Boost shouldn't reinvent the wheel? There's already an open-source arbitrary precision arithmetic library: http://gmplib.org/ It includes big-int, big-rational and big-float types. It's originally in C, but includes C++ class interfaces. I use it and I'm quite happy with it. I believe it's included in most, if not all, Linux distributions. -- Michiel Helvensteijn
At 1:00 AM +0200 5/27/09, Michiel Helvensteijn wrote:
Scott McMurray wrote:
Is there an integral type in Boost that has no upper limit? The only physical limit would be the amount of memory on the system. And of course, the larger the number, the heavier the math is on such an object, because more cycles are required.
People keep proposing them; The latest I know of is mp_int, which can be found at ...
Perhaps Boost shouldn't reinvent the wheel? There's already an open-source arbitrary precision arithmetic library: http://gmplib.org/
Which says: GMP is distributed under the GNU LGPL. This license makes the library free to use, share, and improve, and allows you to pass on the result. The license gives freedoms, but also sets firm restrictions on the use with non-free programs. There are people using Boost for both free and non-free programs. It's my understanding that we (Boost) want to continue to support all of them. -- -- Marshall Marshall Clow Idio Software mailto:marshall@idio.com It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion.
Marshall Clow wrote:
Perhaps Boost shouldn't reinvent the wheel? There's already an open-source arbitrary precision arithmetic library: http://gmplib.org/
Which says: GMP is distributed under the GNU LGPL. This license makes the library free to use, share, and improve, and allows you to pass on the result. The license gives freedoms, but also sets firm restrictions on the use with non-free programs.
There are people using Boost for both free and non-free programs. It's my understanding that we (Boost) want to continue to support all of them.
It was my understanding that the difference between the GPL and the LGPL was that libraries under the LGPL may be used in non-free programs. http://www.gnu.org/licenses/why-not-lgpl.html That article is written from the free software movement point of view, but the first paragraph does make as much clear. Whether it's actually 'compatible' with the boost license, I have no idea. -- Michiel Helvensteijn
participants (4)
-
Marshall Clow
-
Michiel Helvensteijn
-
Robert Dailey
-
Scott McMurray