[Numpy-tickets] [NumPy] #475: Right/Left multiplication of matrix by sequence is inconsistent.
NumPy
numpy-tickets@scipy....
Fri Mar 23 21:18:42 CDT 2007
#475: Right/Left multiplication of matrix by sequence is inconsistent.
---------------------+------------------------------------------------------
Reporter: charris | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.2 Release
Component: Other | Version: devel
Severity: normal | Keywords: matrix multiplication
---------------------+------------------------------------------------------
{{{
In [12]: i = matrix(eye(2))
In [13]: [1,2]*i
Out[13]: matrix([[ 1., 2.]])
}}}
works
{{{
In [14]: i*[[1],[2]]
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most
recent call last)
/home/charris/<ipython console>
TypeError: can't multiply sequence by non-int
}}}
doesn't.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/475>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list