Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty matrices: smith_form() throws a RuntimeError #3068

Closed
dfdeshom opened this issue Apr 30, 2008 · 6 comments
Closed

empty matrices: smith_form() throws a RuntimeError #3068

dfdeshom opened this issue Apr 30, 2008 · 6 comments

Comments

@dfdeshom
Copy link

sage: m = matrix([])
sage: m.smith_form()
<type 'exceptions.RuntimeError'>:

Component: linear algebra

Issue created by migration from https://trac.sagemath.org/ticket/3068

@dfdeshom
Copy link
Author

comment:1

This seems to be gone as of 3.1.1. Could someone close this?

sage: m = matrix([])
sage: m.smith_form()
 ([], [], [])

@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Dec 8, 2008

comment:2

In 3.2.2.alpha0 this works fine as long as the matrix has 0 rows and 0 columns, but for 0 rows and a nonzero number of columns (or vice versa) we still get the error. This arises from the fact that Pari doesn't have the notion of a matrix with 0 rows and 1 column, so the matrix gets "truncated" (!) before being passed to Pari.

I will fix this as part of #4681.

@loefflerd loefflerd mannequin closed this as completed Dec 8, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 8, 2008

comment:3

Hi David,

usually the release manager does the closing of a ticket once the fix has been merged. Until then it stays open.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin reopened this Dec 8, 2008
@loefflerd
Copy link
Mannequin

loefflerd mannequin commented Dec 8, 2008

comment:4

I'm sorry for overstepping my authority. Anyway, the fix is now up at #4681.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 8, 2008

comment:5

Replying to @loefflerd:

I'm sorry for overstepping my authority. Anyway, the fix is now up at #4681.

Don't worry about it because it is one of those unwritten rules :)

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 10, 2008

comment:6

Fixed in Sage 3.2.2.alpha1 via #4681.

Cheers,

Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants