[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread Martin Albrecht
On Thursday 02 April 2009, Christophe Oosterlynck wrote: Hi, is it possible to calculate the echelon form of matrices containing polynomials over GF(2)? I'm getting the following error: NotImplementedError: echelon form over Univariate Polynomial Ring in x over Finite Field of size 2

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread Jason Grout
Martin Albrecht wrote: On Thursday 02 April 2009, Christophe Oosterlynck wrote: Hi, is it possible to calculate the echelon form of matrices containing polynomials over GF(2)? I'm getting the following error: NotImplementedError: echelon form over Univariate Polynomial Ring in x over

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread William Stein
On Thu, Apr 2, 2009 at 4:42 AM, Jason Grout jason-s...@creativetrax.com wrote: Martin Albrecht wrote: On Thursday 02 April 2009, Christophe Oosterlynck wrote: Hi, is it possible to calculate the echelon form of matrices containing polynomials over GF(2)? I'm getting the following error:

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread Robert Bradshaw
On Apr 2, 2009, at 8:59 AM, William Stein wrote: On Thu, Apr 2, 2009 at 4:42 AM, Jason Grout jason- s...@creativetrax.com wrote: Martin Albrecht wrote: On Thursday 02 April 2009, Christophe Oosterlynck wrote: Hi, is it possible to calculate the echelon form of matrices containing

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread William Stein
On Thu, Apr 2, 2009 at 10:54 AM, Robert Bradshaw rober...@math.washington.edu wrote: On Apr 2, 2009, at 8:59 AM, William Stein wrote: On Thu, Apr 2, 2009 at 4:42 AM, Jason Grout jason- s...@creativetrax.com wrote: Martin Albrecht wrote: On Thursday 02 April 2009, Christophe Oosterlynck

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread kcrisman
 Incidentally, doing everything with floats would I think be *very* inappropriate for an undergrad class in linear algebra, where most of the by hand problems require the students to use rational numbers. Yes, which is why he only uses Octave for half the semester, I think, or something like

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread Jason Grout
kcrisman wrote: Incidentally, doing everything with floats would I think be *very* inappropriate for an undergrad class in linear algebra, where most of the by hand problems require the students to use rational numbers. Yes, which is why he only uses Octave for half the semester, I

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread William Stein
On Thu, Apr 2, 2009 at 6:23 PM, Jason Grout jason-s...@creativetrax.com wrote: kcrisman wrote:  Incidentally, doing everything with floats would I think be *very* inappropriate for an undergrad class in linear algebra, where most of the by hand problems require the students to use rational

[sage-support] Re: echelon form of matrices containing polynomials over GF(2) ?

2009-04-02 Thread Jason Grout
William Stein wrote: On Thu, Apr 2, 2009 at 6:23 PM, Jason Grout jason-s...@creativetrax.com wrote: kcrisman wrote: Incidentally, doing everything with floats would I think be *very* inappropriate for an undergrad class in linear algebra, where most of the by hand problems require the

[sage-support] Re: echelon form

2007-06-02 Thread Michel
Ok I understand!! I just did the exercise in the pari console. ? A=[0,0,0; 0,0,0; 0,0,0] %3 = [0 0 0] [0 0 0] [0 0 0] ? mathnf(A) %4 = [;] So pari is a bit brain damaged and represents the empty matrix by [;]!!! This should be special cased in the parsing routines. William: I assume it is

[sage-support] Re: echelon form

2007-06-02 Thread Michel
Here is a patch that fixes this. Perhaps there is a better way to do it. http://emis.uhasselt.be/sage_patches/zero_matrix_echelon_form_bug.patch Michel On Jun 2, 10:01 am, Michel [EMAIL PROTECTED] wrote: Ok I understand!! I just did the exercise in the pari console. ? A=[0,0,0; 0,0,0;

[sage-support] Re: echelon form

2007-06-01 Thread William Stein
On 6/1/07, Thea Gegenberg [EMAIL PROTECTED] wrote: The method echelon_form gives me an error when I try to take the echelon form of a zero matrix. It says TypeError: entries has the wrong length Here's an example to illustrate the bug. I hope somebody will fix it and send me a patch :-).

[sage-support] Re: echelon form

2007-06-01 Thread Michel
No patch but I can tell you were there is something obviously wrong. The matrix H on line 1056 in matrix_integer_dense.pyx should be the empty matrix (perhaps []?) but it is something like ['','']. The computation for adding the missing zero rows goes wrong after that. Michel On Jun 1, 9:34