DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python given upper triangle construct symmetric matrix
>>> i_lower = np.tril_indices(n, -1) >>> matrix[i_lower] = matrix.T[i_lower]
PREVIOUS
NEXT
Tagged:
#python
#upper
#triangle
#construct
#symmetric
#matrix
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit