Using pytables, which is more efficient: scipy.sparse or numpy dense matrix? Using pytables, which is more efficient: scipy.sparse or numpy dense matrix? numpy numpy

Using pytables, which is more efficient: scipy.sparse or numpy dense matrix?


Borrowing from Storing numpy sparse matrix in HDF5 (PyTables), you can marshal a scipy.sparse array into a pytables format using its data, indicies, and indptr attributes, which are three regular numpy.ndarray objects.