control.projectionΒΆ

Projection of a stiffness onto the matrices a passive spring can have.

Functions

project_psd(K)

The symmetric positive semidefinite matrix nearest to K: symmetrize it, then raise its negative eigenvalues to 0.