示例#1
0
文件: csr.py 项目: toslunar/cupy
    def sort_indices(self):
        """Sorts the indices of this matrix *in place*.

        .. warning::
            Calling this function might synchronize the device.

        """
        if not self.has_sorted_indices:
            cusparse.csrsort(self)
            self.has_sorted_indices = True
示例#2
0
文件: csr.py 项目: mnicely/cupy
 def sort_indices(self):
     """Sorts the indices of the matrix in place."""
     cusparse.csrsort(self)