Skip to content

Commit

Permalink
12406: test that check is ignored over inexact rings
Browse files Browse the repository at this point in the history
See also #13932.
  • Loading branch information
mwageringel committed Mar 29, 2020
1 parent 988e215 commit 99c2a7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,15 @@ cdef class Matrix(Matrix1):
doctest:...: DeprecationWarning: solve_right should be called with
a vector or matrix
See http://trac.sagemath.org/17405 for details.

Over inexact rings, the ``check`` parameter is ignored as the result is
only an approximate solution (:trac:`13932`)::

sage: RF = RealField(52)
sage: B = matrix(RF, 2, 2, 1)
sage: A = matrix(RF, [[0.24, 1, 0], [1, 0, 0]])
sage: (A * A.solve_right(B) - B).norm() < 1e-14
True
"""
try:
L = B.base_ring()
Expand Down

0 comments on commit 99c2a7e

Please sign in to comment.