DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
np diag
>>> np.diag(np.diag(x)) array([[0, 0, 0], [0, 4, 0], [0, 0, 8]])
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#np
#diag
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit