Пример функции Python Numpy Asmatrix
# welcome to softhunt.net
# Python Programming illustrating
# numpy.asmatrix
import numpy as np
# array-like input
b = np.matrix([[1, 2, 3], [4, 5]])
print("Via array-like input : \n", b, "\n")
c = np.asmatrix(b)
b[0, 1] = 15
print("c matrix : \n", c)
Outrageous Ostrich