Pytorch does not have a native matrix logarithm. I would like to create an efficient logarithm using \'scipy.linalg.logm\'. The problem is that \'logm\' can only be applied