結果 : check if matrix is positive semidefinite python