ENH: inv ncov rank

finlaizes and closes #1709 .