added isposdef method and PSDConstraint