Search
 
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
Name
4+4 =