`linalg.matrix_rank`: fix cpp interface + add more overloads (#70575)
Summary:
As per title.
cc jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70575
Reviewed By: albanD
Differential Revision: D33760541
Pulled By: mruberry
fbshipit-source-id: e048941311c885f91ae524ab34cb732a18eda6c4
(cherry picked from commit 2d686e002d908c5307aac121ede5a0a03bca3327)