Skip to content

Instantly share code, notes, and snippets.

@loiseaujc
Last active February 16, 2021 12:01
Show Gist options
  • Save loiseaujc/9601edbdbc508d209cfc6a9572663ed2 to your computer and use it in GitHub Desktop.
Save loiseaujc/9601edbdbc508d209cfc6a9572663ed2 to your computer and use it in GitHub Desktop.
using LinearAlgebra
function sensor_placement(Ψ)
# --> Compute the QR w/ column pivoting decomposition of Ψ.
_, _, p = qr(transpose(Ψ), Val(true))
return p[1:size(Ψ, 2)]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment