def triangular_upper(self, k=0):
        return self._new_instance(sp.triu(self.matrix, k=k))
Returns the upper triangular portion of this matrix.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.triangular_upper