def is_vector(self):
        if self.shape[0] == 1:
            return True
        else:
            return False
Checks to see whether its row is of length one, and will as such be considered to be a vector.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.is_vector