#11115: Rewrite cached_method in Cython
---------------------------+------------------------------------------------
Reporter: SimonKing | Owner: jason
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: misc | Keywords: category cython cache
Work_issues: | Upstream: N/A
Reviewer: | Author: Simon King
Merged: | Dependencies: sage-4.7, #9976, #11298, #11342
---------------------------+------------------------------------------------
Comment(by SimonKing):
With sage-4.7.2.alpha2 plus #11342 and this ticket, I get a rather strange
doctest error:
{{{
sage -t -long "devel/sage-main/sage/matrix/matrix2.pyx"
**********************************************************************
File "/mnt/local/king/SAGE/sage-4.7.2.alpha2/devel/sage-
main/sage/matrix/matrix2.pyx", line 7722:
sage: M.round(10)
Expected:
[-2.4494897428 0.0 0.0]
[-3.6742346142 0.7071067812 0.0]
[-4.8989794856 1.4142135624 0.0]
Got:
[-2.4494897428 0.0 0.0]
[-3.6742346142 0.7071067812 0.0]
[-4.8989794856 1.4142135624 -0.0]
**********************************************************************
1 items had failures:
1 of 68 in __main__.example_97
***Test Failed*** 1 failures.
For whitespace errors, see the file
/mnt/local/king/.sage/tmp/.doctest_matrix2.py
[22.4 s]
}}}
Hence, 0.0 becomes -0.0.
Worse is another error:
{{{
sage -t -long "devel/sage-main/sage/matrix/matrix_double_dense.pyx"
**********************************************************************
File "/mnt/local/king/SAGE/sage-4.7.2.alpha2/devel/sage-
main/sage/matrix/matrix_
double_dense.pyx", line 968:
sage: sv[2:3]
Expected:
[2.92724029018e-16]
Got:
[2.01161346159e-16]
**********************************************************************
File "/mnt/local/king/SAGE/sage-4.7.2.alpha2/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1032:
sage: sv = A.singular_values(eps='auto'); sv
Expected:
verbose 1 (<module>) singular values, smallest-non-zero:cutoff
:largest-zero, 2.2766...:6.2421...e-14:1.4160...e-15
[35.139963659, 2.27661020871, 0.0, 0.0]
Got:
verbose 1 (<module>) singular values, smallest-non-zero:cutoff
:largest-zero, 2.27661020871:6.2421114782e-14:8.24999265856e-16
[35.139963659, 2.27661020871, 0.0, 0.0]
**********************************************************************
File "/mnt/local/king/SAGE/sage-4.7.2.alpha2/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1983:
sage: Q
Expected:
[ -0.359210604054 0.569326179705 0.368048420509 0.641385845805]
[ 0.179605302027 -0.144590775798 0.925041158846 -0.301884576418]
[ 0.179605302027 -0.704880032016 0.0774617736597 0.681825307224]
[ 0.898026510134 0.397624633445 -0.0532812182975 0.180566192161]
Got:
[ -0.359210604054 0.569326179705 -0.631992205475 -0.383954808874]
[ 0.179605302027 -0.144590775798 -0.664300280125 0.711013769813]
[ 0.179605302027 -0.704880032016 -0.397049825048 -0.559676256758]
[ 0.898026510134 0.397624633445 -0.0405268611553 -0.183849426161]
**********************************************************************
File "/mnt/local/king/SAGE/sage-4.7.2.alpha2/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1988:
sage: R
Expected:
[ -5.56776436283 2.6940795304 -2.6940795304]
[ 0 -3.56958477752 3.56958477752]
[ 0 0 -9.93013661299e-16]
[ 0 0 0]
Got:
[ -5.56776436283 2.6940795304 -2.6940795304]
[ 0 -3.56958477752 3.56958477752]
[ 0 0 4.41845043177e-16]
[ 0 0 0]
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11115#comment:59>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.