# 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 EXAMPLES:: sage: V = QQ^3; W = span([[1,2,3],[-1,2,5/3]], QQ) sage: phi = V.hom(matrix(QQ,3,[1..9])) sage: V = ZZ^3; W = span([[1,2,3],[-1,2,8]], ZZ) sage: phi = V.hom(matrix(ZZ,3,[1..9])) sage: phi._repr_() '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' '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' sage: V = ZZ^6 sage: W = ZZ^4 sage: m = matrix(QQ, 40, 40, 1600) sage: phi = V.hom(m, V) sage: phi Free module morphism defined by the matrix Vector space morphism represented by the matrix: 40 x 40 dense matrix over Rational Field Domain: Vector space of dimension 40 over Rational Field Codomain: Vector space of dimension 40 over Rational Field