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