[Python] numpy.mat

numpy.mat

numpy.mat(datadtype=None)
Interpret the input as a matrix.

Unlike matrix, asmatrix does not make a copy if the input is already a matrix or an ndarray. Equivalent to matrix(data, copy=False).

Parameters:

data : array_like

Input data.

dtype : data-type

Data-type of the output matrix.

Returns:

mat : matrix

data interpreted as a matrix.

 

posted @ 2017-03-23 22:26  KennyRom  阅读(336)  评论(0编辑  收藏  举报