def plog(self):
        self.matrix.eliminate_zeros()
        mat = self.matrix.tocoo()
        mat.data[mat.data < 1] = 1
        mat.data = np.log(mat.data)
        return self._new_instance(mat)
Computes positive ln(x) element-wise. Where x < 1, set to 1 for avoiding log values below 0.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.plog