generate matrix numpy code example
Example 1: numpy matrix in python 3
np.matrix([[1, 2], [3, 4]])
# matrix([[1, 2],
# [3, 4]])
Example 2: how to create multidimensional array in python using numpy
from numpy import *
array = array([[1,2,3,4],[3,4,2,5]])
## if want you can print it
print(array)
Example 3: making a numpy matrix
np.matrix([[1, 2], [3, 4]])