Sparse Storage#

Array manipulation#

sparse_vector_to_matrix(mesh, vector)

Convert a NumPy 1D array respecting the order of the sparse storage to a 2D array.

sparse_matrix_to_vector(mesh, matrix)

Convert a NumPy 2D array to a 1D array respecting the order of the sparse storage.