COMPAT: Add NumpyVersion from scipy
Merge pull request #1432 from jseabold/fix-loose-version

COMPAT: Add NumpyVersion from scipy
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