def __init__(self, args, *, shape, rows_sorted=False, cols_sorted=False): self.data, self.row, self.col = _safe_asarray(args) self._rows_sorted = rows_sorted self._cols_sorted = cols_sorted super().__init__(args, shape=shape)
def __init__(self, args, *, shape): self.data, self.row, self.col = _safe_asarray(args) super().__init__(args, shape=shape)
def __init__(self, args, *, shape): self.data, self.indices, self.indptr = _safe_asarray(args) super().__init__(args, shape=shape)