(self)
| 1432 | self.__dict__.update(state) |
| 1433 | |
| 1434 | def nonzero(self) -> tuple[npt.NDArray[np.int32]]: |
| 1435 | if self.fill_value == 0: |
| 1436 | return (self.sp_index.indices,) |
| 1437 | else: |
| 1438 | return (self.sp_index.indices[self.sp_values != 0],) |
| 1439 | |
| 1440 | # ------------------------------------------------------------------------ |
| 1441 | # Reductions |
no outgoing calls