Uses of Class
org.apache.sysds.runtime.data.SparseBlock
-
-
Uses of SparseBlock in org.apache.sysds.runtime.compress
Methods in org.apache.sysds.runtime.compress that return SparseBlock Modifier and Type Method Description SparseBlockCompressedMatrixBlock. getSparseBlock()Methods in org.apache.sysds.runtime.compress with parameters of type SparseBlock Modifier and Type Method Description voidCompressedMatrixBlock. appendRowToSparse(SparseBlock dest, MatrixBlock src, int i, int rowoffset, int coloffset, boolean deep)voidCompressedMatrixBlock. setSparseBlock(SparseBlock sblock) -
Uses of SparseBlock in org.apache.sysds.runtime.compress.colgroup
Methods in org.apache.sysds.runtime.compress.colgroup with parameters of type SparseBlock Modifier and Type Method Description voidAColGroup. decompressToSparseBlock(SparseBlock sb, int rl, int ru)Decompress a range of rows into a sparse block Note that this is using append, so the sparse column indexes need to be sorted afterwards.abstract voidAColGroup. decompressToSparseBlock(SparseBlock sb, int rl, int ru, int offR, int offC)Decompress into the SparseBlock.voidAColGroupValue. decompressToSparseBlock(SparseBlock sb, int rl, int ru, int offR, int offC)voidColGroupConst. decompressToSparseBlock(SparseBlock ret, int rl, int ru, int offR, int offC)voidColGroupEmpty. decompressToSparseBlock(SparseBlock sb, int rl, int ru, int offR, int offC)voidColGroupUncompressed. decompressToSparseBlock(SparseBlock ret, int rl, int ru, int offR, int offC)abstract voidAPreAgg. preAggregateSparse(SparseBlock sb, double[] preAgg, int rl, int ru)voidColGroupDDC. preAggregateSparse(SparseBlock sb, double[] preAgg, int rl, int ru)voidColGroupSDCSingleZeros. preAggregateSparse(SparseBlock sb, double[] preAgg, int rl, int ru)voidColGroupSDCZeros. preAggregateSparse(SparseBlock sb, double[] preAgg, int rl, int ru) -
Uses of SparseBlock in org.apache.sysds.runtime.compress.colgroup.mapping
Methods in org.apache.sysds.runtime.compress.colgroup.mapping with parameters of type SparseBlock Modifier and Type Method Description voidAMapToData. preAggregateSparse(SparseBlock sb, double[] preAV, int rl, int ru)PreAggregate the sparseblock in the range of rows given.voidAMapToData. preAggregateSparse(SparseBlock sb, double[] preAV, int rl, int ru, AOffset indexes)PreAggregate the SparseBlock in the range of rows given. -
Uses of SparseBlock in org.apache.sysds.runtime.compress.colgroup.offset
Methods in org.apache.sysds.runtime.compress.colgroup.offset with parameters of type SparseBlock Modifier and Type Method Description voidAOffset. preAggregateSparseMap(SparseBlock sb, double[] preAV, int rl, int ru, int nVal, AMapToData data) -
Uses of SparseBlock in org.apache.sysds.runtime.controlprogram.caching
Methods in org.apache.sysds.runtime.controlprogram.caching with parameters of type SparseBlock Modifier and Type Method Description longCacheDataInput. readSparseRows(int rlen, long nnz, SparseBlock rows)voidCacheDataOutput. writeSparseRows(int rlen, SparseBlock rows) -
Uses of SparseBlock in org.apache.sysds.runtime.data
Subclasses of SparseBlock in org.apache.sysds.runtime.data Modifier and Type Class Description classSparseBlockCOOSparseBlock implementation that realizes a traditional 'coordinate matrix' representation, where the entire sparse block is stored as triples in three arrays: row indexes, column indexes, and values, where row indexes and colunm indexes are sorted in order to allow binary search.classSparseBlockCSRSparseBlock implementation that realizes a traditional 'compressed sparse row' representation, where the entire sparse block is stored as three arrays: ptr of length rlen+1 to store offsets per row, and indexes/values of length nnz to store column indexes and values of non-zero entries.classSparseBlockMCSRSparseBlock implementation that realizes a 'modified compressed sparse row' representation, where each compressed row is stored as a separate SparseRow object which provides flexibility for unsorted row appends without the need for global reshifting of values/indexes but it incurs additional memory overhead per row for object/array headers per row which also slows down memory-bound operations due to higher memory bandwidth requirements.Methods in org.apache.sysds.runtime.data that return SparseBlock Modifier and Type Method Description static SparseBlockSparseBlockFactory. copySparseBlock(SparseBlock.Type type, SparseBlock sblock, boolean forceCopy)static SparseBlockSparseBlockFactory. createSparseBlock(int rlen)static SparseBlockSparseBlockFactory. createSparseBlock(SparseBlock.Type type, int rlen)static SparseBlockSparseBlockFactory. createSparseBlock(SparseBlock.Type type, SparseRow row)SparseBlockBasicTensorBlock. getSparseBlock()Methods in org.apache.sysds.runtime.data with parameters of type SparseBlock Modifier and Type Method Description static SparseBlockSparseBlockFactory. copySparseBlock(SparseBlock.Type type, SparseBlock sblock, boolean forceCopy)static SparseBlock.TypeSparseBlockFactory. getSparseBlockType(SparseBlock sblock)booleanSparseBlock. isAligned(int r, SparseBlock that)Indicates if all non-zero values of row r are aligned with the same row of the given second sparse block instance, which can be exploited for more efficient operations.booleanSparseBlock. isAligned(SparseBlock that)Indicates if all non-zero values are aligned with the given second sparse block instance, which can be exploited for more efficient operations.static booleanSparseBlockFactory. isSparseBlockType(SparseBlock sblock, SparseBlock.Type type)voidSparseBlockCSR. setIndexRange(int rl, int ru, int cl, int cu, SparseBlock sb)Inserts a sparse block into the row and column range [rl,ru) and [cl,cu).Constructors in org.apache.sysds.runtime.data with parameters of type SparseBlock Constructor Description SparseBlockCOO(SparseBlock sblock)Copy constructor sparse block abstraction.SparseBlockCSR(SparseBlock sblock)Copy constructor sparse block abstraction.SparseBlockMCSR(SparseBlock sblock)Copy constructor sparse block abstraction. -
Uses of SparseBlock in org.apache.sysds.runtime.matrix.data
Methods in org.apache.sysds.runtime.matrix.data that return SparseBlock Modifier and Type Method Description SparseBlockMatrixBlock. getSparseBlock()Methods in org.apache.sysds.runtime.matrix.data with parameters of type SparseBlock Modifier and Type Method Description voidMatrixBlock. appendRowToSparse(SparseBlock dest, MatrixBlock src, int i, int rowoffset, int coloffset, boolean deep)longMatrixBlockDataInput. readSparseRows(int rlen, long nnz, SparseBlock rows)Reads the sparse rows array from the data input into a sparse block and returns the number of non-zeros.voidMatrixBlock. setSparseBlock(SparseBlock sblock)voidMatrixBlockDataOutput. writeSparseRows(int rlen, SparseBlock rows)Writes the sparse rows array of a sparse block to the data output.Constructors in org.apache.sysds.runtime.matrix.data with parameters of type SparseBlock Constructor Description MatrixBlock(int rl, int cl, long nnz, SparseBlock sblock)Constructs a sparseMatrixBlockwith a given instance of aSparseBlock -
Uses of SparseBlock in org.apache.sysds.runtime.util
Methods in org.apache.sysds.runtime.util with parameters of type SparseBlock Modifier and Type Method Description static longUtilFunctions. computeNnz(SparseBlock a, int[] aix, int ai, int alen)longByteBufferDataInput. readSparseRows(int rlen, long nnz, SparseBlock rows)longFastBufferedDataInputStream. readSparseRows(int rlen, long nnz, SparseBlock rows)voidFastBufferedDataOutputStream. writeSparseRows(int rlen, SparseBlock rows)
-