cuda_cffi/cusparse.py
def _with_data(self, data, copy=True):
        """Returns a matrix with the same sparsity structure as self,
        but with different data.  By default the structure arrays
        (i.e. .indptr and .indices) are copied.
        """
        if copy:
            return self.__class__(copyMatDescr(self.descr), data,
                                  self.RowPtr.copy(), self.ColInd.copy(),
                                  self.shape, handle=self.handle)
        else:
            return self.__class__(self.descr, data,
                                  self.RowPtr, self.ColInd,
                                  self.shape, handle=self.handle)
Returns a matrix with the same sparsity structure as self,
        but with different data.  By default the structure arrays
        (i.e. .indptr and .indices) are copied.
        
Returns a matrix with the same sparsity structure as self,
but with different data.  By default the structure arrays
are copied.
Returns a matrix with the same sparsity structure as self but with different data . By default the structure arrays are copied .
def _with_data(self, data, copy=True):
        if copy:
            return self.__class__(copyMatDescr(self.descr), data,
                                  self.RowPtr.copy(), self.ColInd.copy(),
                                  self.shape, handle=self.handle)
        else:
            return self.__class__(self.descr, data,
                                  self.RowPtr, self.ColInd,
                                  self.shape, handle=self.handle)
def _with_data ( self , data , copy = True ) : if copy : return self . __class__ ( copyMatDescr ( self . descr ) , data , self . RowPtr . copy ( ) , self . ColInd . copy ( ) , self . shape , handle = self . handle ) else : return self . __class__ ( self . descr , data , self . RowPtr , self . ColInd , self . shape , handle = self . handle )
Returns a matrix with the same sparsity structure as self,
but with different data.
Returns a matrix with the same sparsity structure as self but with different data .
"""Returns a matrix with the same sparsity structure as self,
        but with different data.  By default the structure arrays
        (i.e. .indptr and .indices) are copied.
        """
self
data
copy