Description Details Public fields Methods
Class a simple interface to store a sparse Matrix and fill it with a HUGE dense one from an HDF5 file connection.
Class a simple interface to store a sparse Matrix and fill it with a HUGE dense one from an HDF5 file connection.
The main intension here is to keep memory footprint as low as possible while also trying to be as fast as possible.
Matrix
the sparse matrix
file
the HDF5 connection
print()
print a summary of the object
Dense2SparseHDF5$print()
new()
initialize the object
Dense2SparseHDF5$new(fname)
fname
the hdf5 file
toSparse()
convert a dense matrix entry in the hdf5 file to sparse
Dense2SparseHDF5$toSparse(slot = "matrix", block_size = 1000)
slot
the slot to convert (default 'matrix')
block_size
the read block size ( default 1000)
toSparseVector()
convert a dense matrix entry in the hdf5 file to sparse This function does not directly modify the sparse matrix oin c++, but converts the matrix into a i j and x vector using c++ and the R Matrix Package.
Dense2SparseHDF5$toSparseVector(slot = "matrix", block_size = 1000)
slot
the slot to convert (default 'matrix')
block_size
the read block size ( default 1000)
clone()
The objects of this class are cloneable with this method.
Dense2SparseHDF5$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.