I have the following trace term:
trace(Sk' Ck Sk)
where Sk is a KxM matrix and Ck is a KxK positive semidefinite matrix. I'm involving this trace term in a Matlab code and it seems to suffer when computing this term. How could I simplify it (if possible)?