Hi Sergey,
| In what way the Haskell implementations may use the GMP library?
| (GNU Multi-Precision integers ?)
Hugs 98 doesn't use gmp at all. For legal reasons (later rendered
irrelevant by changes to the Hugs license), Hugs used it's own
implementation of multi-precision integers.
| And
Mark P Jones wrote:
I guess that H/Direct would be the best way to take advantage of these
right now.
I agree actually. Integer only needs to be an implementation of
multiprecision arithmetic; we shouldn't tie it to GMP. There are
other multiprecision arithmetic packages out there, for
George Russell ([EMAIL PROTECTED]) wrote:
: I agree actually. Integer only needs to be an implementation of
: multiprecision arithmetic; we shouldn't tie it to GMP. There are
: other multiprecision arithmetic packages out there, for example
But it is pretty fast.
: the LIP package included
Marc van Dongen wrote:
Do you have any data about comparisons with this or
other packages?
I've just looked around Dave Rusin's page:
http://www.math.niu.edu/~rusin/known-math/index/11YXX.html
but it doesn't seem to contain any up-to-date comparisons; in
particular not of GMP 3. There are
George Russell wrote:
(GMP is faster if
you use the mpn_ functions, but then you have to do all your own
allocation and only get non-negative integers.)
Sorry, I meant GMP is faster if you use mpn_ than if you use the other
GMP functions, not that the mpn_ functions are faster than LIP.
George Russell ([EMAIL PROTECTED]) wrote:
[...]
: Sorry I can't be more helpful. But there is unlikely to be a simple
: answer to the question "Does LIP or GMP multiply numbers fastest?";
: it will depend on how big the numbers are, what platform you are using,
: and how much difficult the
No. It is all right.
For example, gcdExt 4 6 = (2,-1,1),so -1*4 + 1*6 = 2 = gcd 4 6.
Maybe, you forgot of negatives?
--
Sergey Mechveliani
[EMAIL PROTECTED]
Wed, 19 Apr 2000 10:19:08 +0400 (MSD), S.D.Mechveliani [EMAIL PROTECTED] pisze:
I have an impression that Haskell-98 calls `Integral' various models
for the domain of integer numbers. And this is for Haskell-98'.
While the good standard of future (I hope for Haskell-2) has, to my
mind, to