-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
inverting a non-invertible matrix over RDF returns weird results #2468
Comments
comment:2
I don't see why a ZeroDivisionError should be thrown. Note that Matlab doesn't complain either:
|
comment:3
I agree with dfdeshom. The relevant code that does the inverse is
Note that 1/RDF(0) also doesn't give ZeroDivisionError:
So I think that (1) this ticket should be resolved with a patch |
comment:4
I've added a patch that, in addition:
|
Attachment: 2468.hg.gz correct a small typo in patch |
comment:5
Replying to @dfdeshom:
Very nice! Before the patch:
I will add a doctest patch for this bug since it is currently missing. Cheers, Michael |
comment:6
Ok, I now figured out that you also added a doctest for the bug you fixed. So disregard my comment about adding a doctest. Cheers, Michael |
comment:7
Merged in Sage 2.11.alpha0 |
Check this out:
This is, to say the least, weird. This should throw a ZeroDivisionError instead.
Component: linear algebra
Issue created by migration from https://trac.sagemath.org/ticket/2468
The text was updated successfully, but these errors were encountered: