Update linalg.rst

Added example for the eig() function