Ticket #11553: trac_11553-matrix-morphisms-doctests.patch

File trac_11553-matrix-morphisms-doctests.patch, 988 bytes (added by rbeezer, 10 years ago)

Doctest matrix transposes

  • sage/modules/matrix_morphism.py

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1314070026 25200
    # Node ID 2c6618d5c265f4d79a0a5456a188b5ec9e846868
    # Parent  7cd3cc885d7722eeb609c6e61dbca45308967dcc
    11553: doctest matrices transposed
    
    diff --git a/sage/modules/matrix_morphism.py b/sage/modules/matrix_morphism.py
    a b  
    749749
    750750            sage: V1 = QQ^2
    751751            sage: V2 = QQ^3
    752             sage: m = matrix(QQ, [[1,2],[3,4],[5,6]])
     752            sage: m = matrix(QQ, [[1, 2, 3], [4, 5, 6]])
    753753            sage: phi = V1.hom(m, V2)
    754754            sage: phi.is_injective()
    755755            True
     
    766766
    767767            sage: V1 = QQ^3
    768768            sage: V2 = QQ^2
    769             sage: phi = V1.hom(matrix(QQ, [[1, 2, 3], [4, 5, 6]]), V2)
     769            sage: phi = V1.hom(matrix(QQ, [[1, 2], [3, 4], [5, 6]]), V2)
    770770            sage: x = vector(QQ, [1, -1, 4])
    771771            sage: y = phi(x); y
    772772            (18, 22)