Hi, I need to raise a matrix to the power of -1/2, but I believe doing so using just **(-1/2) makes the computation element-wise.
For example, if I do
m = torch.tensor([[.5,.5],[.7,.9]])
print(m**(-1/2))

I get
tensor([[1.4142, 1.4142],
        [1.1952, 1.0541]])

But what I want is
tensor([[2.6978, -1.1091],
   [-1.5527,1.8105]])

which is what Matlab provides when I run m^(-1/2). Unfortunately torch.matrix_power() seems to only take integers, and torch.pow() also seems to do the computation element-wise.
Thanks!