Hi Shay, On Sun, Sep 28, 2008 at 5:33 PM, Shay Mozes <[EMAIL PROTECTED]> wrote: > I suspect there is a bug in the implementation of the vector function. > It seems that when trying to construct a sparse vector by a dictionary > sage simply ignores the keys. for example: > > sage: v = vector({3:1.1 , 5:3.14}); v > (1.10000000000000, 3.14000000000000) > > where one would expect the behavior to be similar to matrix: > > sage: m = matrix({(0,3):1.1 , (0,5):3.14}); m > [0.000000000000000 0.000000000000000 0.000000000000000 > 1.10000000000000 0.000000000000000 3.14000000000000] > > it seems to me that the problem is in prepare_dict (in > free_module_element)
Thanks for pointing this out. I've made this ticket #4215 ( http://trac.sagemath.org/sage_trac/ticket/4215 ) and posted a patch there. --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---