Reposted from biff1 via cvx