A Riemannian Primal-dual Algorithm Based on Proximal Operator and its Application in Metric Learning