#15835: Smith Normal Form Integers Mod 2 TypeError: submatrix() takes exactly 4
positional arguments(2 given)
-------------------------------------+-------------------------------------
       Reporter:  andrewsilver       |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-6.2
      Component:  linear algebra     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/andrewsilver/ticket/15835        |  feb0831bb267b164837e73ee2801f080b7e15bb6
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by fwclarke):

 * status:  needs_review => needs_work


Comment:

 Replying to [comment:13 andrewsilver]:
 > For the dockets, is taking the sub-matrix of an identity matrix
 (integers mod 2) sufficient?

 You must have the same spellchecker as me!

 Yes something like
 {{{
 sage: A = identity_matrix(GF(2), 6)
 sage: A.submatrix(3, 2)
 [0 1 0 0]
 [0 0 1 0]
 [0 0 0 1]
 }}}
 would do.  And, as there also needs to be a doctest for the case of higher
 degree finite fields of characteristic 2, perhaps
 {{{
 sage: F8.<a> = GF(8)
 sage: A = matrix(4, 4, [a^i for i in range(16)])
 sage: A.submatrix(2, 1)
 [    a^2   a + 1 a^2 + a]
 [a^2 + 1       1       a]
 }}}
 Of course there should be a doctest for `smith_form` too.

--
Ticket URL: <http://trac.sagemath.org/ticket/15835#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to