-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Fix eigenmatrix doctest to work across all platforms #11897
Comments
Attachment: trac_11897-doctest-RDF-eigenmatrix.patch.gz |
comment:1
Rationale: this was just meant to show how to get results for inexact matrices with real or complex entries. It is in the middle of a docstring for an exact routine. So this preserves the "doc" part and abandons the "test" part.
Rational: doctest has not been abandoned. Due to the need to adjust the sign of the eigenvectors, this is relegated to a test section. This was built on an alpha3 prerelease, I trust it will be OK on a real alpha3 (which I am about to build right now). |
Author: Rob Beezer |
comment:2
Replying to @rbeezer:
Two hunks do not apply because of (the late) attachment: ticket:11595:trac_11595-fix_noisy_zero_doctest_errors.reviewer.patch. Otherwise looks fine, but perhaps Karl-Dieter should rerun the tests on his famous favorite machine. |
comment:3
Do you also open a follup-up ticket to #7852? attachment: ticket:7852:trac_7852-adjust_noisy_zero_term_threshold_for_polys.reviewer.patch wasn't enough for his machine. (I later increased epsilon from 1.0e-15 to 2.5e-15 in one example to make |
comment:4
Correct. Let me know when you have a new one. :(
Now, now! No disparaging remarks. At least I'm not using Windows or FreeBSD! Those pose more drastic problems :) |
comment:5
Replying to @nexttime:
No, did not want to venture into polynomials - just took responsibility for matrices. Forgot to actually start a build last night, so it will be maybe 12 hours at the soonest before I can build a proper patch (long story). But will do. Rob |
Attachment: trac_11897-doctest-RDF-eigenmatrix.rebased.patch.gz Rob's patch rebased on Sage 4.7.2.alpha3. |
Reviewer: Karl-Dieter Crisman, Leif Leonhardy |
This comment has been minimized.
This comment has been minimized.
comment:6
Sorry, I could easily have done that yesterday, but I was too tired to even look at the rejects. The rebased patch also passes tests and the documentation builds fine, so positive review from my side. Karl-Dieter (or Dasher / student?), please finalize! |
comment:7
You don't even want to know how old this computer is, nor how many hands it's passed through on the way to me. But luckily the password is still rms' favorite - carriage return - and its only use is for testing Sage, so that's all I need! I know it's a burden sometimes, but I think that it's picked up a number of (real) bugs over the last couple years as well, vindicating Dave Kirkby's philosophy of "test as widely as possible". Anyway, I'll get that fired up tomorrow morning when I get in. Eventually I'll probably convert it (and a couple other similar machines I own) to Linux. Though now that YouTube has the HTML5 option, maybe I can start avoiding Flash and keep them going a few more years... see also TenFourFox. Favorite quote: "A quad 2.5GHz G5 isn't worth using to surf the web? Really? And you guys still support Windows XP?" |
comment:8
Really sorry, folks.
We may need to use the new |
comment:9
Replying to @kcrisman:
Hmmm, would be nicer to expect a true zero ( If you use |
comment:10
Nope, |
Sage library patch. Apply on top of Rob's (rebased) patch. |
This comment has been minimized.
This comment has been minimized.
comment:11
Attachment: trac_11897-fix_noisy_zeroes_in_eigenvalues.reviewer.patch.gz Next try. (I've attached a reviewer patch to be applied on top.) Hopefully |
comment:13
Replying to @kcrisman:
No need to apologize - I was sort of afraid this would happen. I have an alpha3 build now and will get to whatever needs doing (review of the latest patch?) tonight if it is still outstanding. Rob |
comment:14
Replying to @nexttime:
Surprisingly it does. :) |
comment:15
I agree that this solution is better than what I suggested. This passes the tests. Positive review?
|
comment:17
Replying to @kcrisman:
Why not... Although Rob could review my reviewer patch. Anyway, he can set it back to needs work just in case... :) |
comment:18
Replying to @nexttime:
It all looks good to me, so I think we are done with this one. I'll go look at polynomials. Thanks for the help with this one, Leif, and to KDC and Dasher for pushing us to do better. ;-) |
Merged: sage-4.7.2.alpha4 |
Doctest for RDF matrix fails on some platforms by returning the negatives of the more commonly returned eigenvectors.
See sage-release discussion:
http://groups.google.com/group/sage-release/msg/e885e53316c6880f
Apply
to the Sage library.
CC: @kcrisman @jdemeyer @nexttime
Component: linear algebra
Author: Rob Beezer
Reviewer: Karl-Dieter Crisman, Leif Leonhardy
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/11897
The text was updated successfully, but these errors were encountered: