The linear index of a group representation