clean up LinearMap implementation

Nothing substantial here, just a little bit of cleanup and getting rid of `&const self` now that it's unnecessary (the methods are already pure anyway).