Karim Belabas on Sat, 03 Sep 2022 11:14:33 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: all divisors of a cyclotomic integer
|
- To: John Cremona <john.cremona@gmail.com>, Pari Users <pari-users@pari.math.u-bordeaux.fr>
- Subject: Re: all divisors of a cyclotomic integer
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Sat, 3 Sep 2022 11:13:58 +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=1662196441; c=relaxed/relaxed; bh=9Wn+YWkEdc8zufzEKHUVaQDlLiV4E3vX97KJFK5svVg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=YKlKDn1ygbwy+7ioeH6c0sRA0oWik2/UAijnhjCBrttRf9slN+pmHXTlSdbB0OhjKWgp8b6bjw+ogycQcGMGj5uewz3uQeSEPpstOsL23oQ8fV7yJrrZSaB6In0t07rtGDLescLNfNsBbo076+etSoBtr+hqNdQhdnm/D+yRZAU5YmfpAPSW1Dw+/F3b9KavwhOeimm5VoI9Gc2jQEMFF60eReMrPgDsV40bJwCGBYfBbQ9bHz81G05XLoZEGKYdQgsuoOnCVw3FQTZ/mGEuVyF6bE28FAX88Pz1ybpyuEwwEIAlgqpURkHT1nmgGhfwY6Qf4uxRHfpVPFWXMi/ptvsklWvfpbx845A/l3kZuniJr2xC0hU106NwWtNJkrOLke3Yu4oQrGx+9IATLbmWy/mBV9lK/q6ocvGuFzsS6d6qG5pH9y1iMVAgpTLGL1J3hNxr5XNHqZ7BoMpkRMyXtTiIUroRSC4Qn64W9OT1UvSaYiAfGFDkedNHLo4gEZaaKQC86DkGvr0YzpIsbI9pek4q+eOfHgDLk2/op3474RPb/Jg8lufY8ZjRnGdeO4lc8FcNGWAc2I2nVZUhp/eOpTgT0FIqkZLa8TnrChDEixDnmMX04h1dOhFTx6/zFvpsnUXxb7boGx8BdhVphzEx2MOnOZsUNX8Qj7pa19z1k/Y=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1662196441; cv=none; b=esdbs4khjXIn3sr0xUoyP3sCBUmEQ9o4V99wsMQ5wNgdoPfP6SLQa8EUKAFHCxwdNq6qMllEXle4IBQPMywZQv69608ULpU3go5BDuBSCzgXJmxpz4n02UmNvsoFtpziiB/43+nKLN150QMT6ULQbcxKbr+ikQxxWdl6ZsNgWwaoOJGCNjUKl5HV69euSgsI2Y6+kQN3OGc/ek2Hl+wiZCU3SjJclBm74WATMGvvjA/PseGHfznZgN1F7yAp++BdKAY+lZkc6f4nRFnyUJPqzdYBwhs8Vh8sx1x90D1Ig9nejtJ9s9J8xyAwDH9hKdE+xu0lu35mZkRoDZ/6cqsbLxm1AVZwK/eq6TN36lvjgtrrbbbaZEwP2lxgYS94W4e4bf0LtddDSCvN8AEW4TWwpJKzsso4+A4rwyGs0+XUONSqmLLnduPdEkm9b3A0YVht/EpRdXb+rRfxhU8nUzDJYkHgkAkURbuMmQO9V44mv6FHgoQb9NHzcuwa5A17gH9EiULfHGhJP6Gz12f1JmUIhP8plmfMwD+uDTWY9Jz5bpipfwoyeZf3YlCfG7s80rzWMcOphDenbBmQ+qKp7hMaMQ53uFKnHm/V6fuaBz6YVwJO9ilRU6gyLajnn+B5LUqEupvjkQ984zh0E+NmDQQG/+NDDCTA1eVH91uPKZ2jXCo=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Sat, 03 Sep 2022 11:14:33 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1662196441; bh=9Wn+YWkEdc8zufzEKHUVaQDlLiV4E3vX97KJFK5svVg=; h=Date:From:To:Subject:References:In-Reply-To:From; b=CN2wvsYjc+xrNAdqRa3RJma5ACuZjhWUIFSYADW/lIm5CeiSAD0lGQOhV2OvZ0keV 9Tlo8t9HvQek7NQUHJ/BN5ouoEAxa5sIzq4WguwDagrWL1VaX+/qcMxQFyDOtvEoeI 4OQMQO6FC+DwlSa5aYBhiJhbeCqdWH+18whz8ymQ+TXetuKxBOBZ2mECPV0HGW14H7 M+kNq6NenXbnbvpRk1H9Y57wgBKQpDhgaFV/2gPxYkuhsSREEWp8l6DW2QXhg7pxh2 twZlxbDUBZthibXVF/nZb6GNp741wAIkbPdnTZFYw0rYNmK9WahFQIOKZZY/WUC/al xoVYI3dfWV43ud5FwO75TkZbEr070w8ImXeQjqM4bJDWp+i/G/Wx/r/MlixEup5L2Y 40iziEgYZma4CxOjLa1vrvyt5ZIEcr/ZE9xC74IL40D6oE0rexuM/tdPBaIcmbTtLF Uy9d+rR3TBq+WLZhOm6UJQxNY62EmP8vS5ah9CAqlnmg33pGiOou50WLlM4UdLIxLz Zeclnh/C+0haPhYGhW33EOCEJLT4IQIfJu2cJjMhcuBBGJ3nPESvag9MfTxJua7FgL nW3Pi8jhDdA72A9lGBvfAssjU462ZJI66Yqa4+sGYJsPbJ5C0aFzqsZBUqD19TT5Hh 3hjmHBw8j7WJml2HWiefWoBk=
- In-reply-to: <YxIPQkWu6iVQhh4d@math.u-bordeaux.fr>
- Mail-followup-to: John Cremona <john.cremona@gmail.com>, Pari Users <pari-users@pari.math.u-bordeaux.fr>
- References: <CAJkPp5NTu1Fe01Dbkqg8L2eTaorAF3PZ_gLbLn2Rf_romNDb6A@mail.gmail.com> <YsC0fqV7pR42R3Pn@seventeen> <YsC4BbI1GfxfrrbZ@seventeen> <CAJkPp5PKe8wP-VGFNGb_04oMmz_D-LUFXWn=ORjyGGPUXA4Xcg@mail.gmail.com> <YwzymE02+O96x3ZA@seventeen> <CAJkPp5MnngpJ1KxjgNEhYH9VGsQnmW05+t7BdpOAJVaRuuvung@mail.gmail.com> <YxEHRg9UG878uxFt@seventeen> <CAD0p0K5tjETa08EkXTiVmNMosOrKHzMuFHF4YtKpJ2p_98hM8A@mail.gmail.com> <YxIPQkWu6iVQhh4d@math.u-bordeaux.fr>
* Karim Belabas [2022-09-02 16:12]:
[...]
> - use multiplications by prime ideals which are much cheaper than general
> multiplications; note that idealfactorback doesn't use this trick
> because it must cater to arbitrary "factorizations" involving arbitrary
> ideals not only primes [it could check its input first then take
> advantage of the trick if possible; but it currently doesn't]
I just fixed that one. A random benchmark:
k=nfinit(x^6+108);
p=idealprimedec(k,2)[1];
q=idealprimedec(k,3)[1];
r=idealprimedec(k,5)[1]; P=[p,q,r];
for(i=1,10^3, forvec(E=vector(3, i, [0,3]), idealfactorback(k,P,E)))
Before commit b8050f0d7:
time = 6,381 ms.
After:
time = 1,728 ms.
Cheers,
K.B.
--
Karim Belabas, IMB (UMR 5251), Université de Bordeaux
Vice-président en charge du Numérique
T: (+33) 05 40 00 29 77; http://www.math.u-bordeaux.fr/~kbelabas/
`