#19378: mod 2, product of nx0 matrix and 0-dimensional vector: segfault
-------------------------------------+-------------------------------------
       Reporter:  jhpalmieri         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  critical           |    Milestone:  sage-6.9
      Component:  linear algebra     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/modules/gf2_matrix_times_0dim_vector-19378|  
ccfd5f827df03f150209d1b347de1853cff1036d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Travis Scrimshaw', 'oldvalue': ''}):

 * status:  new => needs_review
 * commit:   => ccfd5f827df03f150209d1b347de1853cff1036d
 * branch:   => public/modules/gf2_matrix_times_0dim_vector-19378
 * author:   => Travis Scrimshaw


Comment:

 This has to do with the dense `GF(2)` matrices:
 {{{
 sage: matrix(GF(2), 11, 0, sparse=True) * vector(GF(2), 0)
 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 }}}
 Here is a fix which just skips the multiplication of a vector times matrix
 since the result will be 0.
 ----
 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=ccfd5f827df03f150209d1b347de1853cff1036d
 ccfd5f8]||{{{Don't need to multiply if the vector is 0-dimensional.}}}||

--
Ticket URL: <http://trac.sagemath.org/ticket/19378#comment:1>
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/d/optout.

Reply via email to