(self, data, rows, cols, shape=None, type_as=None)
| 1319 | return self.rng_.permutation(size) |
| 1320 | |
| 1321 | def coo_matrix(self, data, rows, cols, shape=None, type_as=None): |
| 1322 | if type_as is None: |
| 1323 | return coo_matrix((data, (rows, cols)), shape=shape) |
| 1324 | else: |
| 1325 | return coo_matrix((data, (rows, cols)), shape=shape, dtype=type_as.dtype) |
| 1326 | |
| 1327 | def issparse(self, a): |
| 1328 | return issparse(a) |