(m, n, **options)
scipy.sparse verson of zeros.
scipy.sparse verson of zeros.
scipy . sparse verson of zeros .
def _scipy_sparse_zeros(m, n, **options):
    """scipy.sparse verson of zeros."""
    spmatrix = options.get('spmatrix', 'csr')
    dtype = options.get('dtype', 'float64')
    if not sparse:
        raise ImportError
    if spmatrix == 'lil':
        return sparse.lil_matrix((m, n), dtype=dtype)
    elif spmatrix == 'csr':
        return sparse.csr_matrix((m, n), dtype=dtype)
def _scipy_sparse_zeros ( m , n , * * options ) : spmatrix = options . get ( 'spmatrix' , 'csr' ) dtype = options . get ( 'dtype' , 'float64' ) if not sparse : raise ImportError if spmatrix == 'lil' : return sparse . lil_matrix ( ( m , n ) , dtype = dtype ) elif spmatrix == 'csr' : return sparse . csr_matrix ( ( m , n ) , dtype = dtype )