On 10/3/2011 6:59 PM, Pengkui Luo wrote: > Most functions in numpy return ndarray by default. > Use numpy.asmatrix() if you want a matrix. Please note that the example is using matlib.reshape, not numpy.reshape. Alan Isaac