#18713: cannot feed cached function to Matrix
------------------------------+----------------------------
   Reporter:  rws             |            Owner:
       Type:  defect          |           Status:  new
   Priority:  major           |        Milestone:  sage-6.8
  Component:  linear algebra  |         Keywords:
  Merged in:                  |          Authors:
  Reviewers:                  |  Report Upstream:  N/A
Work issues:                  |           Branch:
     Commit:                  |     Dependencies:
   Stopgaps:                  |
------------------------------+----------------------------
 From http://ask.sagemath.org/question/27111/why-can-matrix-not-use-cached-
 functions/
 {{{
 sage: @cached_function
 ....: def L(n,k):
 ....:         if n==k: return 1
 ....:         if k<0 or k>n: return 0
 ....:         return L(n-1,k-1)+(n+k-1)*L(n-1,k)
 ....:
 sage: matrix(ZZ, 8, L)
 ...
 ValueError: Invalid matrix constructor.  Type matrix? for help
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18713>
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