Topological classification of linear endomorphisms