Dense2SparseHDF5: Class a simple interface to store a sparse Matrix and fill it...

Description Details Public fields Methods

Description

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.

Details

The main intension here is to keep memory footprint as low as possible while also trying to be as fast as possible.

Public fields

Matrix

the sparse matrix

file

the HDF5 connection

Methods

Public methods


Method print()

print a summary of the object

Usage
Dense2SparseHDF5$print()

Method new()

initialize the object

Usage
Dense2SparseHDF5$new(fname)
Arguments
fname

the hdf5 file


Method toSparse()

convert a dense matrix entry in the hdf5 file to sparse

Usage
Dense2SparseHDF5$toSparse(slot = "matrix", block_size = 1000)
Arguments
slot

the slot to convert (default 'matrix')

block_size

the read block size ( default 1000)


Method 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.

Usage
Dense2SparseHDF5$toSparseVector(slot = "matrix", block_size = 1000)
Arguments
slot

the slot to convert (default 'matrix')

block_size

the read block size ( default 1000)


Method clone()

The objects of this class are cloneable with this method.

Usage
Dense2SparseHDF5$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


stela2502/Dense2SparseHDF5 documentation built on March 19, 2020, 1:08 a.m.