[sympy] Re: numpy.array(Matrix()) dump/load fails

2008-11-25 Thread William Hunter
Hmmm, I was too hasty, this doesn't happen under 0.6.3 (which I thought I had). On Nov 25, 12:01 pm, William Hunter [EMAIL PROTECTED] wrote: Hi all; Please see code below: from numpy import array, load from sympy import Matrix # This doesn't work: a = array(Matrix([1]))

[sympy] Re: numpy.array(Matrix()) dump/load fails

2008-11-25 Thread Ondrej Certik
On Tue, Nov 25, 2008 at 11:32 AM, William Hunter [EMAIL PROTECTED] wrote: Hmmm, I was too hasty, this doesn't happen under 0.6.3 (which I thought I had). No problem. Btw, if you know how to solve the pickling problem with protocol 2, it'd be really cool. I have no idea so far:

[sympy] Re: numpy.array(Matrix()) dump/load fails

2008-11-25 Thread William Hunter
Something is still not quite right though, look at this for example: In [1]: from sympy import Matrix, symbols, __version__ In [2]: from numpy import array, load In [3]: __version__ Out[3]: '0.6.3' In [4]: m = array(Matrix([1,2,3])).astype('d') In [5]: m Out[5]: array([[ 1.], [ 2.],

[sympy] Re: numpy.array(Matrix()) dump/load fails

2008-11-25 Thread Ondrej Certik
Hi On Tue, Nov 25, 2008 at 4:43 PM, William Hunter [EMAIL PROTECTED] wrote: Something is still not quite right though, look at this for example: In [1]: from sympy import Matrix, symbols, __version__ In [2]: from numpy import array, load In [3]: __version__ Out[3]: '0.6.3' In [4]: m =

[sympy] Re: numpy.array(Matrix()) dump/load fails

2008-11-25 Thread William Hunter
snip Could you please create an issue for it? This issue seems to be related: http://code.google.com/p/sympy/issues/detail?id=1176 Ondrej Done, it's issue 1222. -- wh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google