예제 #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)
예제 #2
0
 def __init__(self, args, *, shape):
     self.data, self.row, self.col = _safe_asarray(args)
     super().__init__(args, shape=shape)
예제 #3
0
파일: csr.py 프로젝트: jbampton/jax
 def __init__(self, args, *, shape):
     self.data, self.indices, self.indptr = _safe_asarray(args)
     super().__init__(args, shape=shape)