Esempio n. 1
0
 def run(self):
     b = a.copy()
     for j in range(niter):
         _sparsetools.csr_plus_csr(n, n, a.indptr, a.indices, a.data,
                                   a.indptr, a.indices, a.data,
                                   b.indptr, b.indices, b.data)
     bres.append(b)
Esempio n. 2
0
 def run(self):
     b = a.copy()
     for j in range(niter):
         _sparsetools.csr_plus_csr(
             n, n, a.indptr, a.indices, a.data, a.indptr, a.indices, a.data, b.indptr, b.indices, b.data
         )
     bres.append(b)