Example #1
0
 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)
Example #2
0
 def __init__(self, args, *, shape):
     self.data, self.row, self.col = _safe_asarray(args)
     super().__init__(args, shape=shape)
Example #3
0
File: csr.py Project: jbampton/jax
 def __init__(self, args, *, shape):
     self.data, self.indices, self.indptr = _safe_asarray(args)
     super().__init__(args, shape=shape)