def _inv_dist(self, X, X2=None):
        dist = self._scaled_dist(X, X2).copy()
        return 1./np.where(dist != 0., dist, np.inf)
Compute the elementwise inverse of the distance matrix, expecpt on the
dataset/ETHPy150Open SheffieldML/GPy/GPy/kern/src/stationary.py/Stationary._inv_dist