Least squares problems (FP 2017-10-20)