Jean-Pierre Flori on Wed, 17 Sep 2014 14:57:35 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Detecting whether PARI has been initialized
|
- To: Jeroen Demeyer <jdemeyer@cage.ugent.be>
- Subject: Re: Detecting whether PARI has been initialized
- From: Jean-Pierre Flori <flori@enst.fr>
- Date: Wed, 17 Sep 2014 14:57:07 +0200
- Cc: pari-dev <pari-dev@pari.math.u-bordeaux1.fr>
- Delivery-date: Wed, 17 Sep 2014 14:57:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=M7auZHuIZOm9BdU1wCe7xaSBKumcB8HH+f0OgENsalI=; b=dBe0k1+xPmzJnbcGg2IzbMIU9BOzjNCQEsyGYbqoa1SFGw0V6ZSWOSx+SPWXyh5F/H Apnh14vtre7+HbAyYJgdcTL32fwShp6HYJujsQ2tsls8ojMsi89vZuE/tm5O0EDDKJEC 6NloTKumee14ts/PQKnimq+BXRbh2SwJEFRMCAaNTmER+R+lm4rGEb3UHjyQ/qPua5f/ aPHEwfWUwwMaYZCdZwnFKrR2lCjekUd+8KxBXFdZ7NtvfVO+FARnyXYegh+lMCE0zxNg 4RqT7kYdxkwFT4jnWLLm09oVW4vpXzcCtQ+kNE7hEc3VyFAVpPc5MVVvAyFgxVjq+coi CK+g==
- In-reply-to: <541979F4.1050402@cage.ugent.be>
- References: <541979F4.1050402@cage.ugent.be>
- Sender: jpflori@gmail.com
That's an interesting question.
I used to do the same in my code using PARI.
2014-09-17 14:09 GMT+02:00 Jeroen Demeyer <jdemeyer@cage.ugent.be>:
> Dear pari-dev,
>
> what is the recommended way to detect whether or not pari_init() has already
> been called? This is useful for libraries which might interact which other
> libraries which have initialized PARI.
>
> John Cremona's eclib for example does
>
> if (!bot) {
> pari_init(1000000, 1000000);
> }
>
> which doesn't work anymore with the latest master.
>
>
> Cheers,
> Jeroen.
>
--
Jean-Pierre Flori