#17341: visualize_structure for sparse matrices over GF(p) is broken
----------------------------------+------------------------
       Reporter:  jhpalmieri      |        Owner:
           Type:  defect          |       Status:  new
       Priority:  minor           |    Milestone:  sage-7.1
      Component:  linear algebra  |   Resolution:
       Keywords:                  |    Merged in:
        Authors:  Jeroen Demeyer  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:                  |     Stopgaps:
----------------------------------+------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):

 * milestone:  sage-6.4 => sage-7.1
 * author:   => Jeroen Demeyer


Old description:

> The docstring for `visualize_structure` (from the file
> `matrix/matrix2.pyx`) says that the input is
> {{{
>         -  ``filename`` - either a path or None in which case a
>            filename in the current directory is chosen automatically
>            (default:None)
> }}}
> In fact, if `filename` is None, then the file gets silently saved in a
> temporary directory (by default a subdirectory of `DOTSAGE/temp`),
> leaving the user to wonder where their file went. I guess the right thing
> to do is to change the docstring, since I think that's how other methods
> for saving graphics work.
>
> (The docstring is also misformatted: `maxsize` should be in the bulleted
> list of inputs.)

New description:

 {{{
 sage: random_matrix(GF(2), 8, 586, sparse=True).visualize_structure()
 IndexError: image index out of range
 }}}

 Solution: remove this specialized implementation, since the general one
 from `Matrix` works just fine.

--

Comment:

 `visualize_structure` no longer has a `filename` argument.

--
Ticket URL: <http://trac.sagemath.org/ticket/17341#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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to