(self, a, threshold=0.0)
| 2735 | return cupyx.scipy.sparse.csr_matrix(a) |
| 2736 | |
| 2737 | def eliminate_zeros(self, a, threshold=0.0): |
| 2738 | if threshold > 0: |
| 2739 | if self.issparse(a): |
| 2740 | a.data[self.abs(a.data) <= threshold] = 0 |
| 2741 | else: |
| 2742 | a[self.abs(a) <= threshold] = 0 |
| 2743 | if self.issparse(a): |
| 2744 | a.eliminate_zeros() |
| 2745 | return a |
| 2746 | |
| 2747 | def todense(self, a): |
| 2748 | if self.issparse(a): |
nothing calls this directly
no test coverage detected