Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
increase abs tol to prevent doctest failures in matrix_double_dense.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
strogdon committed Oct 27, 2014
1 parent 36c150e commit 01f8611
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/matrix/matrix_double_dense.pyx
Expand Up @@ -1009,11 +1009,11 @@ cdef class Matrix_double_dense(matrix_dense.Matrix_dense):
sage: A.condition() > 1.6e16 or A.condition()
True
sage: A.singular_values(eps=None) # abs tol 2e-16
sage: A.singular_values(eps=None) # abs tol 5e-16
[1.7953720595619975, 0.38027524595503703, 0.04473854875218107, 0.0037223122378911614, 0.0002330890890217751, 1.116335748323284e-05, 4.082376110397296e-07, 1.1228610675717613e-08, 2.2519645713496478e-10, 3.1113486853814003e-12, 2.6500422260778388e-14, 9.87312834948426e-17]
sage: A.singular_values(eps='auto') # abs tol 2e-16
sage: A.singular_values(eps='auto') # abs tol 5e-16
[1.7953720595619975, 0.38027524595503703, 0.04473854875218107, 0.0037223122378911614, 0.0002330890890217751, 1.116335748323284e-05, 4.082376110397296e-07, 1.1228610675717613e-08, 2.2519645713496478e-10, 3.1113486853814003e-12, 2.6500422260778388e-14, 0.0]
sage: A.singular_values(eps=1e-4) # abs tol 2e-16
sage: A.singular_values(eps=1e-4) # abs tol 5e-16
[1.7953720595619975, 0.38027524595503703, 0.04473854875218107, 0.0037223122378911614, 0.0002330890890217751, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
With Sage's "verbose" facility, you can compactly see the cutoff
Expand Down

0 comments on commit 01f8611

Please sign in to comment.