cupyx.scipy.sparse.issparse

cupyx.scipy.sparse.issparse(x)

Checks if a given matrix is a sparse matrix.

Returns

Returns if x is cupyx.scipy.sparse.spmatrix that is

a base class of all sparse matrix classes.

Return type

bool