<human>:  Efficient computation of the least-squares algorithm in NumPy
<bot>: Here is some code to solve for the least squares' solution of matrices `a` and `b`

np.linalg.solve(np.dot(a.T, a), np.dot(a.T, b))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.