Ticket #4502: 4502-next_try.3.patch

File 4502-next_try.3.patch, 2.2 KB (added by GeorgSWeber, 13 years ago)

addressing the reviewers wishes (hopefully)

  • sage/matrix/matrix_double_dense.pyx

    # HG changeset patch
    # User Georg S. Weber <GeorgSWeberYouKnowWhatGooglemailYouKnowTheRest>
    # Date 1227117704 -3600
    # Node ID 5aa124b84a9ce67d90052e0b830a3a667c2f8222
    # Parent  5e45f3ee796ad08b6a3467a21f4809ba9e2d69dc
    #4502 temporarily nuking two doctests
    
    diff -r 5e45f3ee796a -r 5aa124b84a9c sage/matrix/matrix_double_dense.pyx
    a b  
    430430            answers on similar platforms depending on the hardware
    431431            and tuning options given to ATLAS:
    432432            sage: A = Matrix(RDF, [[1, 0], [0, 0]])
    433             sage: A.inverse().det()
    434             Traceback (most recent call last):
    435             ...
    436             LinAlgError: singular matrix
     433
     434
     435
     436
    437437            sage: A = matrix(RDF,3,range(1,10));A
    438438            [1.0 2.0 3.0]
    439439            [4.0 5.0 6.0]
     
    441441           
    442442            sage: A.determinant() < 10e-12
    443443            True
    444             sage: ~A
    445             Traceback (most recent call last):
    446             ...
    447             LinAlgError: singular matrix
     444
     445
     446
     447
    448448        """
     449# see trac ticket 4502 --- there is an issue with the "#random" pragma that needs to be fixed
     450#                          as for the mathematical side, scipy v0.7 is expected to fix the invertibility failures
     451#
     452#            sage: A = Matrix(RDF, [[1, 0], [0, 0]])
     453#            sage: A.inverse().det()        # random - on some computers, this will be invertible due to numerical error.
     454#            Traceback (most recent call last):
     455#            ...
     456#            LinAlgError: singular matrix
     457#            sage: A = matrix(RDF,3,range(1,10));A
     458#            [1.0 2.0 3.0]
     459#            [4.0 5.0 6.0]
     460#            [7.0 8.0 9.0]
     461#           
     462#            sage: A.determinant() < 10e-12
     463#            True
     464#            sage: ~A                       # random - on some computers, this will be invertible due to numerical error.
     465#            Traceback (most recent call last):
     466#            ...
     467#            LinAlgError: singular matrix
     468#
    449469        if self._nrows == 0 or self._ncols == 0:
    450470            return self.copy()
    451471