Hello, from the "report a problem" link I got the complaint that
elementary_divisors() is wrong. It turned out that it behaves
differently with respect to the matrix's ring. I guess it's one of
those left/right issues.

Examples:

sage: M = random_matrix(ZZ, 5,3)
sage: M.elementary_divisors()
[1, 1, 1, 0, 0]

sage: M = random_matrix(QQ, 5,3)
sage: M.elementary_divisors()
[1, 1, 1]


Can we make this more consistent? Ideas? The original request was to
change elementary_divisors() for ZZ matrices in the way so that it
returns 3 elements, not 5.

H

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

Reply via email to