Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy get diagonal matrix from matrix

np.diag(np.diag(x))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #numpy #diagonal #matrix #matrix
ADD COMMENT
Topic
Name
9+9 =