Re: BigInt: C++ class for computation with arbitrary large integers

From: Alex Vinokur (alexvn_at_big-foot.com)
Date: 02/24/05


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


Relevant Pages

  • Re: Doubles and Integers as strings.
    ... "Alex Blekhman" wrote: ... programmers as to the best to way to convert numbers into ... these strings to the console. ... produced and output to the console interspersed with text. ...
    (microsoft.public.vc.language)
  • Re: convert outputs to string,help needed!
    ... Alex wrote: ... > i have many outputs (syms) from one function and these outputs i ... > have to convert into strings. ... > char and num2str is the best? ...
    (comp.soft-sys.matlab)
  • Re: External HTML
    ... some strings - it will build an array and make them scroll vertically along ... website written by Alex to illustrate the principles of design, ... and implementation of a content-based website in ASP.NET. ... This website is a three-tiered solution (Presentation Layer, Business Layer, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: String Concatenation in VB.NET
    ... I second what Alex Says. ... If I've got to concatinate two small strings, ... If I'm building a large string in a loop, ... > string concatenation in VB.NET? ...
    (microsoft.public.dotnet.framework.performance)
  • Re: BigInt: C++ class for computation with arbitrary large integers
    ... > integers in strings? ... Alex Vinokur email: alex DOT vinokur AT gmail DOT com ...
    (sci.math)