sparse_matrix

Interface for sparse matrices

Classes

SparseMatrix(format, impl, *args, **kwargs)

SparseMatrix is the ODL interface to the sparse Matrix supports in different backends.

Functions

get_sparse_matrix_format(matrix)

Gets the format string name of a matrix

get_sparse_matrix_impl(matrix)

Gets the implementation string name of a matrix (which must be in one of the sparse formats known to ODL).

is_sparse(matrix)

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

lookup_sparse_format(matrix)

Looks up the sparse format of a matrix.