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