is_sparse

odl.core.sparse.sparse_matrix.is_sparse(matrix: object) bool[source]

Checks whether the object is a sparse matrix in one of the format known to ODL.

Args:

matrix (object): input matrix

Returns:

bool: True if matrix is sparse else False