[SciPy-dev] matrix element access oddity

Alan G Isaac aisaac at american.edu
Mon Dec 12 12:16:09 CST 2005


It seems zip cannot get at matrix elements.
(Arrays work as expected.)

>>> t = [[1],[2],[3]]
>>> print zip(*t)
[(1, 2, 3)]
>>> t2 = scipy.mat(t)
>>> print zip(*t2)
[(matrix([[1]]), matrix([[2]]), matrix([[3]]))]

Is this the desired behavior?

Thanks,
Alan Isaac







More information about the Scipy-dev mailing list