legate_sparse.issparse#
- legate_sparse.issparse(obj) bool #
Check if an object is a legate sparse matrix.
- Parameters:
obj (object) – The object to check.
- Returns:
True if the object is a legate sparse matrix, False otherwise.
- Return type:
Notes
This function checks if the object is an instance of any supported sparse matrix format in legate_sparse. Currently, only CSR and DIA formats for supported.