Ejemplo n.º 1
0
    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.cscsort(self)
            self.has_sorted_indices = True
Ejemplo n.º 2
0
Archivo: csc.py Proyecto: tkerola/cupy
 def sort_indices(self):
     """Sorts the indices of the matrix in place."""
     cusparse.cscsort(self)