In Sage-2.11, jordan_form seems to crash on nilpotent matrices.  For
example:

sage: nil = matrix(QQ,2,2,[[0,1],[0,0]])
sage: nil.jordan_form()

gives:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Volumes/D/sage-2.8.4.1/sage_notebook/worksheets/mh/78/code/
100.py", line 6, in <module>
    nil.jordan_form()
  File "/Volumes/D/sage-2.11/local/lib/python2.5/site-packages/sympy/
plotting/", line 1, in <module>

  File "matrix2.pyx", line 3542, in
sage.matrix.matrix2.Matrix.jordan_form
  File "/Volumes/D/sage-2.11/local/lib/python/site-packages/sage/
matrix/constructor.py", line 812, in block_diagonal_matrix
    return block_matrix(entries, **kwds)
  File "/Volumes/D/sage-2.11/local/lib/python/site-packages/sage/
matrix/constructor.py", line 776, in block_matrix
    big.subdivide(running_total(row_heights[:-1]),
UnboundLocalError: local variable 'big' referenced before assignment

I need this for an example in a class tomorrow, if anyone knows a work-
around it would be much appreciated.
-M. Hampton
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to