#4983: replace subdivisions attribute for matrices with a function
----------------------------+-----------------------------------------------
 Reporter:  was             |       Owner:  was     
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:  sage-3.3
Component:  linear algebra  |    Keywords:          
----------------------------+-----------------------------------------------
 I do not like this:

 {{{
 sage: sage: a = matrix(ZZ,4,[1, 0, 0, 0, 0, 1, 0, 0, 1, -1, 1, 0, 1, -1,
 1, 2])
 sage: sage: b=a.jordan_form()
 sage: b.subdivisions
 ([0, 1, 3, 4], [0, 1, 3, 4])
 sage: b.subdivisions = 10
 sage: b.subdivisions
 10
 }}}

 Notice that you can make the subdivisions nonsense because it can be
 changed.
 Also, of course,
 {{{
 sage: b.subdivisions?
 ...     The Integer class represents arbitrary precision
         integers.  It derives from the Element class, so
 [other useless stuff]
 }}}


 I don't like that at all either.  I wish that subdivisions were a method
 with a proper docstring, doctests, etc., and that variable were hidden.


 Then one would do:
 {{{
    sage: b.subdivisions?
    useful stuff (and also it would be in the reference manual)
 and
    sage: b.subdivisions()
    ([0, 1, 3, 4], [0, 1, 3, 4])
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4983>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to