Suppose that $A \in {\cal S}_+^n$ is a symmetric positive semidefinite matrix. Let $B = {\rm sign}(A)$, where the sign is taken elementwise. Is the resulting matrix $B$ always positive semidefinite?
If not, under what conditions can we say that $B \in {\cal S}_+^n$ ?