Spaces of linear transformations of equal rank