[SciPy-dev] A scalar is no 1 \times 1 matrix ?

Charles R Harris charlesr.harris at gmail.com
Thu Dec 1 00:38:56 EST 2005


Looks right to me.

On 11/30/05, Nils Wagner <nwagner at mecha.uni-stuttgart.de> wrote:
>
> >>> linalg.inv(2)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib64/python2.4/site-packages/scipy/linalg/basic.py", line
> 183, in inv
>     raise ValueError, 'expected square matrix'
> ValueError: expected square matrix
> >>> linalg.inv(mat(2))
> array([[ 0.5]])
>
> Is this behaviour wanted ?
>
> Nils
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20051130/b91a5426/attachment.html>


More information about the SciPy-Dev mailing list