John Cremona on Thu, 24 Dec 2009 12:36:55 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: How to implement equivalent of magma NullSpace in Pari/GP
|
- To: pari-users <pari-users@list.cr.yp.to>
- Subject: Re: How to implement equivalent of magma NullSpace in Pari/GP
- From: John Cremona <john.cremona@gmail.com>
- Date: Thu, 24 Dec 2009 11:30:07 +0000
- Delivery-date: Thu, 24 Dec 2009 12:36:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=NY/wjqwxFVEu5hb3RQ1NiOyN+FE0c7vIqTDw6HKpPEw=; b=X6EEH5V9LchX3++rt6PPccl2DIo1Qmqg3GLlDQp+ConOm2YRJ92QlDDppzSb8CZBxR InfNiD5uPy3v9OoE0COyug5KwKf345Pvp9jJQAlSihVxvRwBZ2o5LbSn3skopREos3fq AuQllTwenL4QOf+OaeM/i8KE+/6pzCvfC+Ois=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vC6QZUDWgiWojYxHv3NXUWWOlmFPjBtDSLNmFrYRi519/dF1eQgZfH+iUHUqruCaRe robKCUU4krF83Lm6+04w13LmjXTgsZmvN7oMP21Byg/6IDCEMWHE0cp1r0zzPwDgLErO Yy394kslz+FjH+FbHy30hSPyeAShzlJp3u6FM=
- In-reply-to: <20091224104029.GS17736@yellowpig>
- Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm
- References: <7.0.1.0.2.20091224202856.059787a8@webdeliverysolutions.com> <20091224104029.GS17736@yellowpig>
2009/12/24 Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>:
> On Thu, Dec 24, 2009 at 08:33:41PM +1100, Kevin Acres wrote:
>> Hi,
>>
>> I'm trying to implement an equivalent of the Magma NullSpace() function.
>
> In PARI, this is called matker().
>
>> For example I'd like:
>>
>> [0 0 0 1 0 0 1 0]
>> [1 0 1 0 0 0 1 0]
>> [1 1 0 0 0 0 0 1]
>> [0 1 1 0 0 0 0 1]
>> [0 1 1 0 0 0 0 0]
>> [0 0 1 0 0 1 0 0]
>>
>> to return
>>
>> [0 1 0 0 0 0 0 0 1]
>> [0 0 1 0 0 1 1 0 0]
>
> Really ? If you want to compute the kernel over Z/2Z then you should do
> matker(M*Mod(1,2)).
Perhaps not "should": from the documentation of matker,
Note: The library function FpM_ker(x, p), where x has integer
entries reduced mod p and p is
prime, is equivalent to, but orders of magnitude faster than,
matker(x*Mod(1,p)) and needs much
less stack space. To use it under gp, type install(FpM_ker, GG) first.
John
>
> Cheers,
> Bill.
>