numpy symmetrize array code example Example: numpy symmetrize array import numpy as np W = np.maximum( A, A.transpose() )