Did I find the right examples for you? yes no

# sputils.issequence

All Samples(20)  |  Call(16)  |  Derive(0)  |  Import(4)

```from .sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
get_csr_submatrix, csr_sample_values
from .sputils import upcast, isintlike, IndexMixin, issequence

from .compressed import _cs_matrix
```
```                return self._get_row_slice(row, col)
# [i, [1, 2]]
elif issequence(col):
P = extractor(col,self.shape[1]).T
return self[row, :] * P
```
```                # col is int or slice with step 1, row is slice with step 1.
return self._get_submatrix(row, col)
elif issequence(col):
P = extractor(col,self.shape[1]).T        # [1:2,[1,2]]
# row is slice, col is sequence.
return self[row,:]*P
elif issequence(row):
```
```                P = extractor(row, self.shape[0])     # [[1,2],j] or [[1,2],1:2]
return (P*self)[:,col]
elif issequence(col):                     # [[1,2],[1,2]]
row = asindices(row)
col = asindices(col)
```

```
from base import spmatrix, isspmatrix
from sputils import getdtype, isshape, issequence, isscalarlike

class lil_matrix(spmatrix):
```
```            if isinstance(j, slice):
j = self._slicetoseq(j, self.shape[1])
if issequence(j):
return self.__class__([[self._get1(i, jj) for jj in j]])
elif issequence(i) and issequence(j):
return self.__class__([[self._get1(ii, jj) for (ii, jj) in zip(i, j)]])
elif issequence(i) or isinstance(i, slice):
```

```
from base import spmatrix, isspmatrix
from sputils import getdtype, isshape, issequence, isscalarlike

from warnings import warn
```
```            if isinstance(j, slice):
j = self._slicetoseq(j, self.shape[1])
if issequence(j):
return self.__class__([[self._get1(i, jj) for jj in j]])
elif issequence(i) and issequence(j):
return self.__class__([[self._get1(ii, jj) for (ii, jj) in zip(i, j)]])
elif issequence(i) or isinstance(i, slice):
```

```