Return the rank of matrix Z as an int.
Z
Input
tensor([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]])
Output
4
This one's part of Premium. Unlock the full PyTorch track plus every other premium problem on the site.
solve(...)