DOK.
from_numpy
Get a DOK array from a Numpy array.
DOK
Examples
>>> s = DOK.from_numpy(np.eye(4)) >>> s <DOK: shape=(4, 4), dtype=float64, nnz=4>