DOC: fix docstring: sparse matrices are accepted