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