def log(self):
        self.matrix.eliminate_zeros()
        mat = self.matrix.tocoo()
        mat.data = np.log(mat.data)
        return self._new_instance(mat)
Computes ln(x) element-wise.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.log