Hi all:

I found a bug related to matrices over polynomial rings.

Alex


----------------------------------------------------------------------
| Sage Version 4.6, Release Date: 2010-10-30                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: R.<x,y>= PolynomialRing(QQ)
sage: f= x
sage: M= matrix([[f,0,0],[f,0,0]])
sage: M.parent()
Full MatrixSpace of 2 by 3 dense matrices over Multivariate Polynomial
Ring in x, y over Rational Field
sage: M.rank()
[x 0 0]
[x 0 0]
2
{(1, 0): x, (0, 0): x}
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call
last)

/Users/raichev/<ipython console> in <module>()

/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/
matrix0.so in sage.matrix.matrix0.Matrix.rank (sage/matrix/matrix0.c:
16674)()

/Applications/sage/local/lib/python2.6/site-packages/sage/matrix/
matrix0.so in sage.matrix.matrix0.Matrix.pivots (sage/matrix/matrix0.c:
16549)()

RuntimeError: BUG: matrix pivots should have been set but weren't,
matrix parent = 'Full MatrixSpace of 2 by 3 dense matrices over
Multivariate Polynomial Ring in x, y over Rational Field'

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to