Bill Allombert on Fri, 29 Mar 2024 08:51:38 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Error in gp/code
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Fri, 29 Mar 2024 08:51:16 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1711698696; c=relaxed/relaxed; bh=Xt/vHgcdX71HY5Z8Ywf0XzdKxTwT34k1Im16jkoBYOA=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=YHa3I6TlEGJyOMvy83wFKVgpA2S8QYBX0xfJV9K/eDLDVdQjWYud4aJtz0RtNGIHXszBnRMSdpoESvJyIei0hN5cOylLdHVTnyRE3zo+d4T6oW8AHiY/asZ4hBS9go/JqNdBVqzQawbhZy433BLGVHwsm43L2Z+UNkdD5EklRNWE+Psl/Yi2nv4oHooGqcfSOJIN3/eZ1+NPMydwhKQcFObg9VUF+hjYDPq2jZThDskSL61FSfm9wNuekTc7Gg+l88dQv7RlEamVBm2bGJZdsvvIhwByHB0FB/yMyC36779PbmaRvCbPyJXeJVHjHPvHbERpaF+JyVDJr2RNHTzsmbm81eSwhpxYGDnwHwsf4KPQu9IddRdB02m33TDm94sr3VvQbaQ+fyNGfQLkQhLkIK9XxX/U1eTc0nVK4wbkggG/rxlC7RO8AcZp7ENwtzEAro+PFqOrgaE2/BJe7NjFrjG4qECQtPFdSfBAKP7Bry0hvCPTjv+7NCmpATTrOUK4lAzvRaagnM/sJuO3BjtQ1Rx9xX4aJvGAMkPsZrxNVz9Tg/PO13gdPMW5ZqAI8YKtQY7RBgM4ab4FAJOUx9k0L7OTkbhnSlQakmJXRlOhqUmiSSGrfBIyAQjcWjeMWqSTsU8zT90Vrd+h9wwhtF9q5BTZRQ8I+2Za8p6romSIhnI=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1711698696; cv=none; b=mOHS0K4MqovUUeh2kfOsTYHAui0T3TERh7I0KyrsyeFYMp2z/yq3gvj1JEltiaa06h72g3aqkDE29j0bD/steJUWA7nCHaXKk/Lu9FpTtLcE7fYHUrQlkVtvvh/RvUU4LjIT7sc1s5xlQSLJkIIYlXv8EQsAciTrqjPwgXvFNXPJU6KxLVsZBZCGyFD+jEiGILg7F2MXFEDaaUjqyrw/+MkzM6W7yIyg0UUSCGK/ERzTcAkNdoI227685KY2ANRZrCdRJ+liXpOPF1YZ9ZFSZQkxA0h/GZJ8cDxjaxSgaH9tco+V8cYls7t6aDhy7EbCzsj83ODi9W5Qf1oVwA/p1q3XyQVBvR1GTsSsXiRzoQbdO3XKIgLxVzHjtupJLh23xQTecM8D9MtJVKLoqX8vdrc/k4SzwTw4wd5bPpPheRaCDmm4Qbnaj4yHsotmjU3fxIigQY+UzaK5MCO82aUEaUubi7v7m1vI82liXQnfb837zY9EDXAjemulJJ6fWC4Xczmwf1qzqNbvuBzX16Q940bLcBBIases4w5Gm2xO28uuYgw99bKnrZla+CvZ+HUlnbgjKwmWkVV4G5EFV8hTxfhalsNj4A6JmrDn6aSgF4t2R+hdrCFrdktboS02HDZBwEXKKZymFkhAS2ODBCFUQa/Zjm000vDdRSdzIRUYvhQ=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Fri, 29 Mar 2024 08:51:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1711698695; bh=Xt/vHgcdX71HY5Z8Ywf0XzdKxTwT34k1Im16jkoBYOA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=b7+4Bz/LJrDoJhWDEVC9TGyIU5W9dN26WV6GjJQ2XIWbu1rQr0seEV38LWd2bKd7D +mbQ1nsTHx0w8nBNJkFUVAlYwDYTbEss4ijM9E8J52NwykkxdcN5FzKwnR3lnHHE2G cDP/SGD8VsL9jpSarEf25CCxS/URJu+8GDIzlPQ7myKA+kSNI5n76Dvktna0RsCbGw ZZILC9RLTbvrcey+5mlnVndRRBBcVjAliWkGJbxeO0qWH28Qb/7roNO3QqpsHL/LOG dBIkLykUfzPpeWiFGb/+Ip1ZjV7lQlmRrCpW+JnhS1TDdEbRQwrckuAm4AtX8G/MCd PZ1yjnj4+KgLoSsgvuuAdhwjRF7He6jTdGfXkQDJRzXEpyHNt2X9g8i5sbh2b9AecG uljJqm3a7NNMBKngNtbCe7BDc2PfnTVii7EFxxLFmnqAAby3/LXWNUzcnVoVKicTIT sWUMWi65bF1S+8YQmCcPxO2umQKd9vuafNFqHJeY7/Q546DRPQNIGSlavOjdihozmV S1hzt1pI1dw/8HaIGSpo5F6sNMqkI+5XOAEPhFlp5g2BF9J4KxMRwG6biMj8pV1vJn rkUq5r3B4owdctxO0o0QwraTh7cUG1pD+voePIbJEkZOTFVodljrNUw50wDwOvM8AZ Y4HiEWB1d2iVddDL5tC61Krg=
- In-reply-to: <SJ0PR19MB47629921B111830B8405CDBA803B2@SJ0PR19MB4762.namprd19.prod.outlook.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <SJ0PR19MB47629921B111830B8405CDBA803B2@SJ0PR19MB4762.namprd19.prod.outlook.com>
On Thu, Mar 28, 2024 at 06:13:45PM +0000, Swati, NoFirstName wrote:
> Hello,
>
> I am trying to compute the coefficients of \Delta^{a} \mid T_{p} modulo an integer m, store them as a column vector, and return the same (Values of a and p are quite large). I tried writing the code for it but getting an error.
>
> // parfor: mt: attempt to change the value of the exported variable B.)
>
> I am not sure how to fix this. Could someone help in this regard?
>
> Here is my code:
>
> comp(a,p, m) = {
> mf = mfpow(mfDelta(), a);
> mf1 = mfinit(mf);
> B = Col(0,a);
> H = mfhecke(mf1, mf, p);
> export(B, H);
> parfor(i = 1, a, B[i] = mfcoef(H, i) % m);
> return(B);
> }
parfor(i = 1, a, mfcoef(H, i) % m, C, B[i] = C);
But there are much better way to do that, which avoid the use of mfinit
completly.
Deltamodm(n,m)=q*prod(k=1,n,1-q^k*Mod(1,m)+O(q^(n+1)))^24;
T(f,p,m,k)=
{
f=truncate(f);
sum(n=0,poldegree(f)\p,
sumdiv(gcd(p,n),r,polcoeff(f,p*n/r^2)*r^(k-1))*q^n) + O(q^(poldegree(f)\m +1));
}
where k is the weight.
Cheers,
Bill