numpy.asmatrix()

numpy.asmatrix

numpy.asmatrix(data, dtype=None) [source]

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:

登录查看完整内容