def eigval_decomp(sym_array):
 (eigva, W) = decomp.eig(sym_array, left=True, right=False)
 k = np.argmax(eigva)
 return (W, eigva, k)

def eigval_decomp ( sym_array ) : ( eigva , W ) = decomp . eig ( sym_array , left = True , right = False ) k = np . argmax ( eigva ) return ( W , eigva , k )
returns w: array of eigenvectors eigva: list of eigenvalues k: largest eigenvector .