Projection onto the positive semi definite orthant with a fixed trace. (Exactly what you need for you laplacian!) See SPGL toolbox
Log in to post a comment.