Skip to content

Instantly share code, notes, and snippets.

@fonnesbeck
Created May 5, 2013 19:52
Show Gist options
  • Select an option

  • Save fonnesbeck/5521963 to your computer and use it in GitHub Desktop.

Select an option

Save fonnesbeck/5521963 to your computer and use it in GitHub Desktop.
Matrix for second differneces
import numpy as np
I2 = 2*np.eye(8)
E = -np.diag(np.ones((7)), k=-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment