Skip to content

Instantly share code, notes, and snippets.

@loiseaujc
Created February 16, 2021 11:56
Show Gist options
  • Save loiseaujc/60eabf4f7a4b5784eff7ed18a5680ed1 to your computer and use it in GitHub Desktop.
Save loiseaujc/60eabf4f7a4b5784eff7ed18a5680ed1 to your computer and use it in GitHub Desktop.
from scipy.linalg import qr
def sensor_placement(Psi):
# --> Perform QR w/ column pivoting.
_, _, p = qr(Psi.T, pivoting=True, mode="economic")
return p[:Psi.shape[1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment