Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Last active December 24, 2018 07:21
Show Gist options
  • Select an option

  • Save RyotaBannai/c74fd7fa3eeb5e445c7496d4ce05cde4 to your computer and use it in GitHub Desktop.

Select an option

Save RyotaBannai/c74fd7fa3eeb5e445c7496d4ce05cde4 to your computer and use it in GitHub Desktop.
from numpy import linalg as LA
w, v = LA.eig(C)
idx = w.argsort()[::-1] # In order that bigger Eigenvalue comes first
w, v = w[idx], v[:, idx]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment