support sparse arrays
Recent scipy defines sparse arrays in addition to sparse matrices, which will eventually be deprecated. These will fail an instance check isinstance(x, sparse.spmatrix)
. We should support these too.
Recent scipy defines sparse arrays in addition to sparse matrices, which will eventually be deprecated. These will fail an instance check isinstance(x, sparse.spmatrix)
. We should support these too.