Updated least-squares for zero matrices