cuda_cffi/cusparse.py
def todense(self, lda=None, to_cpu=False, handle=None, stream=None,
                autosync=True):
        """ return dense gpuarray if to_cpu=False, numpy ndarray if to_cpu=True
        """
        m, n = self.shape
        if lda is None:
            lda = m
        else:
            assert lda >= m
        if handle is None:
            handle = self.handle
        if stream is not None:
            cusparseSetStream(handle, stream.handle)
        A = csr2dense(m, n, self.descr, self.Val, self.RowPtr,
                      self.ColInd, handle=handle, lda=lda)
        if autosync:
            drv.Context.synchronize()
        if to_cpu:
            return A.get()
        else:
            return A
 return dense gpuarray if to_cpu=False, numpy ndarray if to_cpu=True
        
return dense gpuarray if to_cpu=False, numpy ndarray if to_cpu=True
return dense gpuarray if to_cpu = False numpy ndarray if to_cpu = True
def todense(self, lda=None, to_cpu=False, handle=None, stream=None,
                autosync=True):
        m, n = self.shape
        if lda is None:
            lda = m
        else:
            assert lda >= m
        if handle is None:
            handle = self.handle
        if stream is not None:
            cusparseSetStream(handle, stream.handle)
        A = csr2dense(m, n, self.descr, self.Val, self.RowPtr,
                      self.ColInd, handle=handle, lda=lda)
        if autosync:
            drv.Context.synchronize()
        if to_cpu:
            return A.get()
        else:
            return A
def todense ( self , lda = None , to_cpu = False , handle = None , stream = None , autosync = True ) : m , n = self . shape if lda is None : lda = m else : assert lda >= m if handle is None : handle = self . handle if stream is not None : cusparseSetStream ( handle , stream . handle ) A = csr2dense ( m , n , self . descr , self . Val , self . RowPtr , self . ColInd , handle = handle , lda = lda ) if autosync : drv . Context . synchronize ( ) if to_cpu : return A . get ( ) else : return A
return dense gpuarray if to_cpu=False, numpy ndarray if to_cpu=True
return dense gpuarray if to_cpu = False numpy ndarray if to_cpu = True
""" return dense gpuarray if to_cpu=False, numpy ndarray if to_cpu=True
        """
self
lda
to_cpu
handle
stream
autosync