Bill Allombert on Mon, 05 Jun 2023 21:51:51 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Abnormous memory use for gaussian gcd()?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Abnormous memory use for gaussian gcd()?
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 5 Jun 2023 21:47:07 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1685994421; c=relaxed/relaxed; bh=0EiNJ145PN1EgkSOLBotA8zNy28qlg4DP8zSTUhSAVo=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=kwePs4kP9gYoO3595HjQkznGKKJHSKSNSaWjQExniKTP/hpfhIRtOJEA0QTOSWd/Cicjl9dItAHYUUeA7689fLHRPhubJbkzazN/xaNpmJMz7ZumVXzxJH7ddHALgrZqGXsyVv+VVA61/G0F3ERz1QoDrdoy1ZjHLeD0xpEf0iuK8JVf6FzfM7jeV511T8iQ2/rOiXqGmJR4xCB8oZbvv5qxGobcKGMGlVLqZHT7sacNitR0FOvc0D6EK2kK3klDczre2nGcM3d5JrsEOSnvhaLJ1quEBbBcwp6BkwqSuMpufklWhu1Va/5fD8/RPjGqFOljRvtDa3lc5TnkCwE8iUo8Y2lC4ctytmqB6sv3NOUeCprt3yS76ESEgsb6iUAqEtvEp3NE2K7jlxOoJ+sZ9Wy99Lcralh5tLrg4Q7XSvtmaCoMbxiOxwjPjykp1TYKoK4vet1gWqC0KqOjWYtp+l0Y1m5iNXQj58nZtiOZIT17LTwptheJgNxGEs90o4PRrhYXyqfoyBwl4SeX+s7vw+gHzfZnQM1IBIgjMIiI9V2RJJEE2oWjLlTn4kOlZImzu6pel7bbmo+pR7yJ23nkjiFvdeTCwELneJ21cgDzVTq8rNdcEW40K8gdkpSnqmc48D71RS2zrFPOuagq01U07xv62mFsG2FrlQAwa9DTHPI=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1685994421; cv=none; b=KlJzM6aqpy/VzMXWI6z0DM2RNInamxz1WtWdaBlEsCfvhJmnm5nOJ6Et0aUBgZgue/oSd7c3I25dNiDabe8A0kQKP7Mxo/115erdNbodem6jJ86t5qJCX0eF7sKdoCFi1J/UwLSQm0dXfPkwYzb9Ed2u6SvPyb5Lu20u1jm1KeC1CgpyczT7IMEY5QvZVFAdEoKN2OLRrb7wOU1jLcjHwB7IKCDhzMFJTEhHDOx7jGi7ugVRtmvf7xpK1Bf+zX2qye5EZuCC4xRvwcUKBYHBqKYZc2CO/jO+J0dCKW4zujg7EBPbrbQeNC0a/yRXcw910NqH4Df8tK+4kQahKKfXQtaWffBN9b0R+eedGKfxy8cjium313cfqnROO0SCvaYXsI33LiNMCYuZznJgEPyZU62EbW7meYVe/KMLZV993GNR4cWCM+BQBSnmuPd544iiSL+8X8lf4OMmJggHr/2Pvp1IXzByl4Ty4O43Ya541gIvlHUCAhP9dFnmrtzPmyaCnWLKbfZu8189WZGlvfKDSzEl0HfPxHupEPwfB32cBETt17J+N1V5hB2cblP3+wnZIS7/2B4sJCes90sK5HpX+DKWxgJGCpIGdZM1a5pYhU0Lu5PXysV9U9X/xkmsncKVO3rM3xrMGHGUsgUJzPArp/u45juU86xE0hCw+buzHcA=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 05 Jun 2023 21:51:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1685994421; bh=0EiNJ145PN1EgkSOLBotA8zNy28qlg4DP8zSTUhSAVo=; h=Date:From:To:Subject:References:In-Reply-To:From; b=agPDkv3btSLRm6StRDy0uasDXoO7vlpW7RAQPQqkkxhSp9Vkq8PnX9qizB04ElVVg SB6FEi5VCK9rzL8p+Axue905gWPLcO1y/TDzj6mNC4HcoPpt88Gm40P3OHni7kiOhx MdXWP72ylK/AVsF+nH9ZwW8ZwVUYFeG8AfgBfez3UYAK1sPkDGf9N6zbNWtTcgppbA 6HYRW3Y2c56mfMZPKDUshrp5HTimW4XP8ZWtPFQh/n3ynLb624n4UJOU+SMFpqdIg7 A7ZetQUxJkrAptZD/axQ42rjzD2ZLM95prDSFgrmyt7f/5r9SyQni9DpUK97eglEyH z//0Lsm4W6pKTiywcZB7DLXghcts9n2l/PKTNWCWQPzoXkpl4JXkSoPtJXOQofDxvu VNz9TGHTheKxoTmWY1UpAYvYnnYADQgzKGHUZT2Zmp2Bft+MR9F5zpl85cCa2QRj0a aJ6U9zwWNL2fVUocr6ae1mgY5DcdbYkuCDcQmUF2qWbFkwlzeuTveoPqE1om5rB+DU QHEeVaapbORyRlMp4BB4OXcTHmhd/aWefOwn6647zg91XldYvI/9J4YH+5XWdsc62d 1ykIkN/lsFCLXQbKTpWYCUiJ6jiKc/SzK7zNEwNSixKNpWzRyKaxt8DZj3Zh7moSWb ZG17owmLVOwc4fO2WY6lUzvE=
- In-reply-to: <5601edb4464767069d9f9c5138a2867e@stamm-wilbrandt.de>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <85b829f5974500a9215307f172e05724@stamm-wilbrandt.de> <ZH4K05Ocjnpj2L8M@seventeen> <5601edb4464767069d9f9c5138a2867e@stamm-wilbrandt.de>
On Mon, Jun 05, 2023 at 07:40:10PM +0200, hermann@stamm-wilbrandt.de wrote:
> Thank you,
>
> that made it work:
>
> $ gp < 36401.gp
> ...
> 0322528922710200176909512750979384713015800665694494304[+++]
> *** last result computed in 1min, 41,244 ms.
> Goodbye!
> $
>
> I don't understand the difference yet, this is whole script 36401.gp without
> word wrapping:
The difference is that
gp 36401.gp reads 36401.gp as a single command, so ## does not work.
gp < 36401.gp reads each line as a different command.
Under GP you can do either
read("36401.gp") reads 36401.gp as a single command
\r 36401.gp reads each lines as a different command.
Now, why the gcd is very slow ? I do not know, but this is a bit artificial
way to do this computation.
You could do
qfbcornacchia(1,p)
((or if you want to reuse sqrtm1:
[M,V]=halfgcd(sqrtm1,p);
V[2]+I*M[2,1]
which is very fast but quite specific to this case.
))
I do not know what is the right way to compute this GCD.
Cheers,
Bill.