Reposted from mezame via cvx