Re: BigInt: C++ class for computation with arbitrary large integers
From: Alex Vinokur (alexvn_at_big-foot.com)
Date: 02/24/05
- Next message: Mike Deskevich: "orthogonalizing vectors"
- Previous message: Greg Heath: "Re: Functional approximation in higher dimensions"
- In reply to: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Next in thread: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Reply: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Feb 2005 22:33:35 +0200
Hi John,
"John" <weekender_ny@yahoo.com> wrote in message news:1109268791.875900.83560@z14g2000cwz.googlegroups.com...
> Hi Alex,
>
> How are the bigints stored internally? It seems like you store the
> integers in strings?
No, 'std::vector<unsigned long> units_' is used to store bigints internally (see file bigint.h. line-101).
std::string is used to initialize bigints.
> If I have to shift and mask, is this the right choice for most
> architectures?
Could you detail your question?
> Or should you really store it in a list of integers?
>
> If I just want a string which is twice the size of double, which large
> int library
> do you recommend?
I think, it depends on various circumstances.
The developer should perform some tests with different libraries and then to choose appropriate one.
> How does ur bigint class compare with mpz_t of gmp?
The comparison hasn't been performed.
>
> Thanks,
> --j
>
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
- Next message: Mike Deskevich: "orthogonalizing vectors"
- Previous message: Greg Heath: "Re: Functional approximation in higher dimensions"
- In reply to: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Next in thread: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Reply: John: "Re: BigInt: C++ class for computation with arbitrary large integers"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|