Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/s/c/scipy-0.13.3/scipy/sparse/spfuncs.py   scipy(Download)
__all__ = ['count_blocks','estimate_blocksize']
 
from .csr import isspmatrix_csr, csr_matrix
from .csc import isspmatrix_csc
from .sparsetools import csr_count_blocks
        - A.nnz / A.tobsr( (r,c) ).nnz > efficiency
    """
    if not (isspmatrix_csr(A) or isspmatrix_csc(A)):
        A = csr_matrix(A)
 
        raise ValueError('r and c must be positive')
 
    if isspmatrix_csr(A):
        M,N = A.shape
        return csr_count_blocks(M,N,r,c,A.indptr,A.indices)

src/s/c/scipy-HEAD/scipy/sparse/spfuncs.py   scipy(Download)
__all__ = ['count_blocks','estimate_blocksize']
 
from csr import isspmatrix_csr, csr_matrix
from csc import isspmatrix_csc
from sparsetools import csr_count_blocks
        - A.nnz / A.tobsr( (r,c) ).nnz > efficiency
    """
    if not (isspmatrix_csr(A) or isspmatrix_csc(A)):
        A = csr_matrix(A)
 
        raise ValueError('r and c must be positive')
 
    if isspmatrix_csr(A):
        M,N = A.shape
        return csr_count_blocks(M,N,r,c,A.indptr,A.indices)

src/s/c/scipy-0.13.3/scipy/sparse/bsr.py   scipy(Download)
            C = 1
 
        from .csr import isspmatrix_csr
 
        if isspmatrix_csr(other) and n == 1:

src/s/c/scipy-HEAD/scipy/sparse/bsr.py   scipy(Download)
            C = 1
 
        from csr import isspmatrix_csr
 
        if isspmatrix_csr(other) and n == 1: