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

eigenvals of empty matrix raises IndexError #10719

Closed
argriffing opened this issue Mar 3, 2016 · 1 comment · Fixed by #10750
Closed

eigenvals of empty matrix raises IndexError #10719

argriffing opened this issue Mar 3, 2016 · 1 comment · Fixed by #10750

Comments

@argriffing
Copy link

>>> Matrix([[]]).eigenvals()
Traceback (most recent call last):
[...]
IndexError: Index out of range: a[0]

This appears to be a bug, spotted by @aravindkanna in #10701 (comment). I'd expect eigenvals() of an empty matrix to return an empty collection instead of raising an indexing exception.

@argriffing
Copy link
Author

I'm using an old sympy version 0.7.6.

Edit: I see the same error using github master

rd13123013 pushed a commit to rd13123013/sympy that referenced this issue Mar 7, 2016
leosartaj added a commit that referenced this issue Mar 10, 2016
fixed #10719: eigenvals of empty matrix raises IndexError
skirpichev pushed a commit to skirpichev/diofant that referenced this issue Jul 31, 2017
skirpichev pushed a commit to skirpichev/diofant that referenced this issue Sep 21, 2017
Closes sympy/sympy#10719

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant