[Numpy-discussion] SVD failure

Philipp K. Janert python at beyondcode.org
Mon May 4 19:39:40 EDT 2009


 
Thanks for the quick reply. I'll try upgrading.

Best,

                Ph.


On Monday 04 May 2009 04:21:29 pm Stéfan van der Walt wrote:
> Hi Philipp
>
> 2009/5/5 Philipp K. Janert <python at beyondcode.org>:
> > If I see this correctly, my SciPy version
> > is 0.6.0; running on 64bit Suse 11.
>
> SciPy 0.6 is quite old, and it is likely that the problem was fixed in
> the mean time.
>
> On SciPy 0.7 I see:
>
> In [31]: u,s,v = linalg.svd(m)
>
> In [32]: u
> Out[32]:
> array([[-0.70710678,  0.        , -0.70710678,  0.        ],
>        [-0.70710678,  0.        ,  0.70710678,  0.        ],
>        [ 0.        , -0.70710678,  0.        , -0.70710678],
>        [ 0.        , -0.70710678,  0.        ,  0.70710678]])
>
> In [33]: s
> Out[33]: array([ 2.,  2.,  0.,  0.])
>
> In [34]: v
> Out[34]:
> array([[-0.70710678, -0.70710678, -0.        , -0.        ],
>        [-0.        , -0.        , -0.70710678, -0.70710678],
>        [-0.70710678,  0.70710678,  0.        ,  0.        ],
>        [ 0.        ,  0.        , -0.70710678,  0.70710678]])
>
> Regards
> Stéfan
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list