scipy.sparse.dok_matrix.

__len__

dok_matrix.__len__()[source]

Return len(self).