isspmatrix_csc
scipy.sparse.
- scipy.sparse.isspmatrix_csc(x)
Is x of csc_matrix type?
Is x of csc_matrix type?
object to check for being a csc matrix
True if x is a csc matrix, False otherwise
>>> from scipy.sparse import csc_array, csc_matrix, coo_matrix, isspmatrix_csc
>>> isspmatrix_csc(csc_matrix([[5]]))
True
>>> isspmatrix_csc(csc_array([[5]]))
False
>>> isspmatrix_csc(coo_matrix([[5]]))
False