I have numpy arrays I need to convert to DOK format. Why does this work:
x = np.asarray([1, 0, 0]) y = scipy.sparse.dok_matrix(scipy.sparse.csr_matrix(x))