Following the example of `svd()` I suggest just returning the diagonal elements as a vector instead of a full matrix.