#17562: Implement and use get_unsafe()/set_unsafe() for vectors
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-6.5
      Component:  linear algebra     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17562            |  b6f6e8cb339207e88c646f0383f87db7feefea74
   Dependencies:  #10513             |     Stopgaps:
-------------------------------------+-------------------------------------
Description changed by jdemeyer:

Old description:

> {{{
> sage: v=vector(RR,range(6),sparse=True)
> sage: v[::2]
> (0.000000000000000, 1.00000000000000, 2.00000000000000, 3.00000000000000,
> 4.00000000000000, 5.00000000000000)
> }}}

New description:

 Use `get_unsafe()` and `set_unsafe()` in the generic `__getitem__` and
 `__setitem__` methods for free module elements (a.k.a. vectors).

 This should also fix
 {{{
 sage: v=vector(RR,range(6),sparse=True)
 sage: v[::2]
 (0.000000000000000, 1.00000000000000, 2.00000000000000, 3.00000000000000,
 4.00000000000000, 5.00000000000000)
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17562#comment:5>
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