def sp_zeros_like(x):
 (_, _, indptr, shape) = csm_properties(x)
 return CSM(format=x.format)(data=np.array([], dtype=x.type.dtype), indices=np.array([], dtype='int32'), indptr=tensor.zeros_like(indptr), shape=shape)

def sp_zeros_like ( x ) : ( _ , _ , indptr , shape ) = csm_properties ( x ) return CSM ( format = x . format ) ( data = np . array ( [ ] , dtype = x . type . dtype ) , indices = np . array ( [ ] , dtype = 'int32' ) , indptr = tensor . zeros_like ( indptr ) , shape = shape )
construct a sparse matrix of zeros .