[Numpy-discussion] should the return type of matlib.reshape be ndarray or matrix?

Alan G Isaac alan.isaac at gmail.com
Tue Oct 4 07:49:44 EDT 2011


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




More information about the NumPy-Discussion mailing list