#16844: matrix constructor of free Z-module homomorphism
------------------------------+----------------------------
   Reporter:  pooja           |            Owner:  pooja
       Type:  enhancement     |           Status:  new
   Priority:  minor           |        Milestone:  sage-6.4
  Component:  linear algebra  |         Keywords:
  Merged in:                  |          Authors:
  Reviewers:                  |  Report Upstream:  N/A
Work issues:                  |           Branch:
     Commit:                  |     Dependencies:
   Stopgaps:                  |
------------------------------+----------------------------
 {{{
 H = Hom(ZZ^2, ZZ^2)
 sage: H.an_element()
 Free module morphism defined by the matrix
 [2 0]
 [0 2]
 Domain: Ambient free module of rank 2 over the principal ideal domain
 Integer Ring
 Codomain: Ambient free module of rank 2 over the principal ideal domain
 Integer Ring
 sage: f = H.an_element()
 sage: f.matrix
 <bound method FreeModuleMorphism.matrix of Free module morphism defined by
 the matrix
 [2 0]
 [0 2]
 Domain: Ambient free module of rank 2 over the principal ideal domain
 Integer Ring
 Codomain: Ambient free module of rank 2 over the principal ideal domain
 Integer Ring>
 sage: matrix(f)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 <ipython-input-5-2da0ca3992a5> in <module>()
 ----> 1 matrix(f)

 /Applications/sage/local/lib/python2.7/site-
 packages/sage/matrix/constructor.pyc in _matrix_constructor(*args, **kwds)
     711                 entries = args[0]
     712             else:
 --> 713                 raise ValueError("Invalid matrix constructor.
 Type matrix? for help")
     714     else:
     715         raise ValueError("Invalid matrix constructor.  Type
 matrix? for help")
 ValueError: Invalid matrix constructor.  Type matrix? for help"
 }}}

 To modify matrix constructor of morphism of free modules

--
Ticket URL: <http://trac.sagemath.org/ticket/16844>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to