Added computing matrix condition numbers (linalg.cond) (#45832)
Summary:
This PR adds `torch.linalg.cond` for NumPy compatibility.
Ref https://github.com/pytorch/pytorch/issues/42666.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45832
Reviewed By: ngimel
Differential Revision: D25183690
Pulled By: mruberry
fbshipit-source-id: a727959bfec2bc2dc36df59d9ef79c0534b68194