#17245: Matrix class __init__ for sparse matrices is incorrectly documented
-------------------------------------+-------------------------------------
       Reporter:  darij              |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-6.4
      Component:  linear algebra     |   Resolution:
       Keywords:  matrices,          |    Merged in:
  documentation,                     |    Reviewers:  Jeroen Demeyer
        Authors:  Darij Grinberg     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/matrix      |  d4ad7d91a103cea65a9bf1b9e656ea2ef073544e
  /doc-input-matrix-class            |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by tscrim):

 That should be something like this:
 {{{
         - ``entries`` -- can be one of the following:

           * a Python dictionary whose items have the
             form ``(i, j): x``, where ``0 <= i < nrows``,
             ``0 <= j < ncols``, and ``x`` is coercible to
             an integer.  The ``i,j`` entry of ``self`` is
             set to ``x``.  The ``x``'s can be ``0``.
           * Alternatively, entries can be a list of *all*
             the entries of the sparse matrix, read
             row-by-row from top to bottom (so they would
             be mostly 0).
 }}}

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

Reply via email to