Ticket #11556: trac_11556-linear-transformations-v5-rebase.patch

File trac_11556-linear-transformations-v5-rebase.patch, 1.5 KB (added by jason, 10 years ago)
  • sage/modules/free_module_morphism.py

    Fix one patch reject and one doctest formatting error
    
    diff --git a/sage/modules/free_module_morphism.py b/sage/modules/free_module_morphism.py
    a b  
    147147
    148148        EXAMPLES::
    149149
    150             sage: V = QQ^3; W = span([[1,2,3],[-1,2,5/3]], QQ)
    151             sage: phi = V.hom(matrix(QQ,3,[1..9]))
     150            sage: V = ZZ^3; W = span([[1,2,3],[-1,2,8]], ZZ)
     151            sage: phi = V.hom(matrix(ZZ,3,[1..9]))
    152152            sage: phi._repr_()
    153             'Free module morphism defined by the matrix\n[1 2 3]\n[4 5 6]\n[7 8 9]\nDomain: Vector space of dimension 3 over Rational Field\nCodomain: Vector space of dimension 3 over Rational Field'
     153            'Free module morphism defined by the matrix\n[1 2 3]\n[4 5 6]\n[7 8 9]\nDomain: Ambient free module of rank 3 over the principal ideal domain Integer Ring\nCodomain: Ambient free module of rank 3 over the principal ideal domain Integer Ring'
    154154
    155155            sage: V = ZZ^6
    156156            sage: W = ZZ^4
     
    174174            sage: m = matrix(QQ, 40, 40, 1600)
    175175            sage: phi = V.hom(m, V)
    176176            sage: phi
    177             Free module morphism defined by the matrix
     177            Vector space morphism represented by the matrix:
    178178            40 x 40 dense matrix over Rational Field
    179179            Domain: Vector space of dimension 40 over Rational Field
    180180            Codomain: Vector space of dimension 40 over Rational Field