The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
In ML papers
For a square matrix, A−1 is the matrix that undoesA: A−1A=AA−1=I. It exists only when A is invertible (non-zero determinant). Gaussian densities and closed-form least squares, (X⊤X)−1X⊤y, use it. For a number, x−1=1/x; for a function, f−1 is the inverse function, not 1/f.