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

Alan G Isaac alan.isaac@gmail....
Tue Oct 4 06:49:44 CDT 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