Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

init matrix in numpy

>>> A = np.array([[4,7,6],[1,2,5],[9,3,8]])
>>> A
array([[4, 7, 6],
       [1, 2, 5],
       [9, 3, 8]])
>>> A.shape
(3, 3)
Source by moonbooks.org #
 
PREVIOUS NEXT
Tagged: #init #matrix #numpy
ADD COMMENT
Topic
Name
1+2 =