A Differential-Geometric Approach for Bernstein’s Degrees-of-Freedom Problem.- Nonsmooth Riemannian Optimization with Applications ...