Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy identity matrix

>>> np.identity(3)
array([[1.,  0.,  0.],
       [0.,  1.,  0.],
       [0.,  0.,  1.]])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #identity #matrix
ADD COMMENT
Topic
Name
4+9 =