# cechmate.utils.sparse_to_dense¶

cechmate.utils.sparse_to_dense(sparse_bm)[source]

Converts a sparse boundary matrix to a dense boundary matrix.

This is used for visualization and debugging as dense boundary matrices can be easier to read to small matrices. Dense boundary matrices are the default filtration format used in cechmate filtrations.

Parameters

sparse_bm – Sparse boundary matrix.

Returns

dense (np.array) – Square matrix representation of boundary matrix.