Fixed C++ linalg API (#57464)
Summary:
Previous reverted PR https://github.com/pytorch/pytorch/pull/57055. This PR leaves the deprecated signatures untouched.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57464
Reviewed By: mruberry
Differential Revision: D28151048
Pulled By: heitorschueroff
fbshipit-source-id: bc89d6cf3d801819d37b3d19bf525f8abd816881