cupyx.scipy.sparse.isspmatrix

cupyx.scipy.sparse.isspmatrix(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