MAINT: Deprecate rank in favor of np.linalg.matrix_rank
COMPAT: Add np.linalg.matrix_rank for <= 1.7.1
ENH: Use NumpyVersion for version testing
Merge pull request #1383 from jseabold/deprecate-rank

MAINT: Deprecate rank in favor of np.linalg.matrix_rank