#13570: Matrix Entries Can Be Callable Objects not tested
----------------------------+----------------------------------------------
       Reporter:            |        Owner:  tbd
  startakovsky              |       Status:  needs_review
           Type:  PLEASE    |    Milestone:  sage-duplicate/invalid/wontfix
  CHANGE                    |   Resolution:
       Priority:  major     |    Merged in:
      Component:  linear    |    Reviewers:
  algebra                   |  Work issues:
       Keywords:            |       Commit:
        Authors:            |     Stopgaps:
Report Upstream:  N/A       |
         Branch:            |
   Dependencies:            |
----------------------------+----------------------------------------------
Changes (by mmezzarobba):

 * status:  new => needs_review
 * component:  PLEASE CHANGE => linear algebra
 * milestone:  sage-6.2 => sage-duplicate/invalid/wontfix


Comment:

 Replying to [ticket:13570 startakovsky]:
 > In the documentation,
 http://www.sagemath.org/doc/reference/sage/matrix/constructor.html,
 > it states that matrices can pass in callable objects, though there is no
 example or test of this here.  Is there documentation at least showing a
 test of this functionality?

 Yes, there is:
 {{{
 sage: m = matrix(QQ, 3, 3, lambda i, j: i+j); m
 [0 1 2]
 [1 2 3]
 [2 3 4]
 }}}

 If not, it probably should be added, if not for the end user, at least to
 ensure it doesn't break.

 > In the meanwhile, any tip on getting a matrix like:
 >
 > ['apple', 'frog']
 > [[3,2]   , 3      ]

 I don't think there is special support for matrices ''of'' callable
 objects on which multiplication would act as function application, if that
 is what you are looking for.

--
Ticket URL: <http://trac.sagemath.org/ticket/13570#comment:3>
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/groups/opt_out.

Reply via email to