SciPy

scipy.sparse.dia_matrix.tobsr

dia_matrix.tobsr(blocksize=None)[source]