Analytical solutions of a class of matrix function optimization problems with unitary constraints. (January 2022)