I have this confusion about the time complexity of least squares problem. Suppose
minimize $||Ax-b||^2$
Analytical solution = $x^* = (A^TA)^{-1}A^Tb$
computational time proportional to $n^2k$, $A \in \mathbb{R}^{k\times n}$
I didn't get how the computation time is $n^2k$
Here is the source http://classes.soe.ucsc.edu/cmps290c/Spring05/lectures/intro.pdf