想做类似于matlab里“点乘”,“每个数平方”那样的运算,结果在numpy里怎么找都没有类似的做法,请问,我该如何实现呢?
认证高级PHP讲师
Convert np.matrix to np.array
For example, M is an np.matrix
M2 = np.matrix(np.array(M)**2)
Convert np.matrix to np.array
For example, M is an np.matrix
M2 = np.matrix(np.array(M)**2)