[SciPy-dev] ValueError: frames are not aligned
Pearu Peterson
pearu at cens.ioc.ee
Sat Nov 2 19:32:18 EST 2002
On Sat, 2 Nov 2002, Nils Wagner wrote:
> Hi,
>
> I tried to compute the pseudo-inverse of a random matrix...
>
> >>> scipy.__version__
> '0.2.0_alpha_145.4411'
>
> >>> from scipy import *
> >>> a = rand(5,3)
> >>> a
> array([[ 0.81884205, 0.3865217 , 0.9218021 ],
> [ 0.99365133, 0.36057177, 0.64316332],
> [ 0.00589046, 0.56506401, 0.97917145],
> [ 0.43969154, 0.44840959, 0.26978564],
> [ 0.11854674, 0.56671292, 0.8699165 ]])
> >>> ap = linalg.pinv2(a)
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/site-packages/scipy/linalg/basic.py", line 327, in pi nv2
> return dot(tran(conj(vh)),tran(conj(u))*s[:,NewAxis])
> ValueError: frames are not aligned
>
> What is the reason for that ?
It is now fixed in SciPy CVS.
Pearu
More information about the SciPy-Dev
mailing list