problem is the tensor math library inverse function