# Uses of Class
org.apache.sysds.runtime.compress.CompressedMatrixBlock

Packages that use CompressedMatrixBlock
Package
Description
org.apache.sysds.runtime.compress
org.apache.sysds.runtime.compress.colgroup.scheme
org.apache.sysds.runtime.compress.cost
org.apache.sysds.runtime.compress.estim
org.apache.sysds.runtime.compress.lib
org.apache.sysds.runtime.compress.plan

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress

Methods in org.apache.sysds.runtime.compress that return CompressedMatrixBlock
Modifier and Type
Method
Description
`static CompressedMatrixBlock`
CompressedMatrixBlockFactory.`createConstant(int numRows, int numCols, double value)`
Method for constructing a compressed matrix out of an constant input.
`static CompressedMatrixBlock`
CompressedMatrixBlockFactory.`genUncompressedCompressedMatrixBlock(MatrixBlock mb)`
Generate a CompressedMatrixBlock Object that contains a single uncompressed matrix block column group.
`static CompressedMatrixBlock`
CompressedMatrixBlock.`read(DataInput in)`
`CompressedMatrixBlock`
CompressedMatrixBlock.`squash(int k)`
Constructors in org.apache.sysds.runtime.compress with parameters of type CompressedMatrixBlock
Modifier
Constructor
Description
``
`CompressedMatrixBlock(CompressedMatrixBlock that)`
Copy constructor taking that CompressedMatrixBlock and populate this new compressedMatrixBlock with pointers to the same columnGroups.

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress.colgroup.scheme

Methods in org.apache.sysds.runtime.compress.colgroup.scheme that return CompressedMatrixBlock
Modifier and Type
Method
Description
`CompressedMatrixBlock`
CompressionScheme.`encode(MatrixBlock mb)`
Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.
`CompressedMatrixBlock`
CompressionScheme.`encode(MatrixBlock mb, int k)`
Encode the given matrix block, it is assumed that the given MatrixBlock already fit the current scheme.
`CompressedMatrixBlock`
CompressionScheme.`updateAndEncode(MatrixBlock mb)`
`CompressedMatrixBlock`
CompressionScheme.`updateAndEncode(MatrixBlock mb, int k)`
Methods in org.apache.sysds.runtime.compress.colgroup.scheme with parameters of type CompressedMatrixBlock
Modifier and Type
Method
Description
`static CompressionScheme`
CompressionScheme.`getScheme(CompressedMatrixBlock cmb)`
Extract a compression scheme for the given matrix block

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress.cost

Methods in org.apache.sysds.runtime.compress.cost with parameters of type CompressedMatrixBlock
Modifier and Type
Method
Description
`double`
ACostEstimate.`getCost(CompressedMatrixBlock cmb)`
Get cost of a compressed matrix block

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress.estim

Constructors in org.apache.sysds.runtime.compress.estim with parameters of type CompressedMatrixBlock
Modifier
Constructor
Description
``
`ComEstCompressedSample(CompressedMatrixBlock sample, CompressionSettings cs, CompressedMatrixBlock full, int k)`

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress.lib

Methods in org.apache.sysds.runtime.compress.lib that return CompressedMatrixBlock
Modifier and Type
Method
Description
`static CompressedMatrixBlock`
CLALibSlice.`sliceColumns(CompressedMatrixBlock cmb, int cl, int cu)`
`static CompressedMatrixBlock`
CLALibSquash.`squash(CompressedMatrixBlock m, int k)`
Squash or recompress is process each column group in the given Compressed Matrix Block and tries to recompress each column.
Methods in org.apache.sysds.runtime.compress.lib with parameters of type CompressedMatrixBlock
Modifier and Type
Method
Description
`static MatrixBlock`
CLALibCompAgg.`aggregateUnary(CompressedMatrixBlock inputMatrix, MatrixBlock result, AggregateUnaryOperator op, int blen, MatrixIndexes indexesIn, boolean inCP)`
`static MatrixBlock`
CLALibBinaryCellOp.`binaryOperationsLeft(BinaryOperator op, CompressedMatrixBlock m1, MatrixBlock that)`
`static MatrixBlock`
CLALibBinaryCellOp.`binaryOperationsRight(BinaryOperator op, CompressedMatrixBlock m1, MatrixBlock that)`
`static CmCovObject`
CLALibCMOps.`centralMoment(CompressedMatrixBlock cmb, CMOperator op)`
`static List<AColGroup>`
CLALibCombineGroups.`combine(CompressedMatrixBlock cmb, CompressedSizeInfo csi, ExecutorService pool, int k)`
`static void`
CLALibUtils.`combineConstColumns(CompressedMatrixBlock in)`
Combine all column groups that are constant types, this include empty and const.
`static MatrixBlock`
CLALibDecompress.`decompress(CompressedMatrixBlock cmb, int k)`
`static void`
CLALibDecompress.`decompressTo(CompressedMatrixBlock cmb, MatrixBlock ret, int rowOffset, int colOffset, int k, boolean countNNz)`
`static void`
CLALibDecompress.`decompressTo(CompressedMatrixBlock cmb, MatrixBlock ret, int rowOffset, int colOffset, int k, boolean countNNz, boolean reset)`
`static CompressionScheme`
CLALibScheme.`getScheme(CompressedMatrixBlock cmb)`
`static MatrixBlock`
CLALibLeftMultBy.`leftMultByMatrix(CompressedMatrixBlock right, MatrixBlock left, MatrixBlock ret, int k)`
Left multiplication with two CompressedMatrixBlock following the equation: ret = left %*% right
`static MatrixBlock`
CLALibLeftMultBy.`leftMultByMatrixTransposed(CompressedMatrixBlock right, CompressedMatrixBlock left, MatrixBlock ret, int k)`
Left multiplication with two CompressedMatrixBlock following the equation:
`static MatrixBlock`
CLALibLeftMultBy.`leftMultByMatrixTransposed(CompressedMatrixBlock right, MatrixBlock left, MatrixBlock ret, int k)`
Left multiplication with a CompressedMatrixBlock on the right following the equation:
`static MatrixBlock`
CLALibTSMM.`leftMultByTransposeSelf(CompressedMatrixBlock cmb, int k)`
`static MatrixBlock`
CLALibTSMM.`leftMultByTransposeSelf(CompressedMatrixBlock cmb, MatrixBlock ret, int k)`
Self left Matrix multiplication (tsmm) t(x) %*% x
`static MatrixBlock`
CLALibSelectionMult.`leftSelection(CompressedMatrixBlock right, MatrixBlock left, MatrixBlock ret, int k)`
Left selection where the left matrix is sparse with a max 1 non zero per row and that non zero is a 1.
`static MatrixBlock`
CLALibMMChain.`mmChain(CompressedMatrixBlock x, MatrixBlock v, MatrixBlock w, MatrixBlock out, MapMultChain.ChainType ctype, int k)`
Support compressed MM chain operation to fuse the following cases :
`static MatrixBlock`
CLALibReorg.`reorg(CompressedMatrixBlock cmb, ReorgOperator op, MatrixBlock ret, int startRow, int startColumn, int length)`
`static MatrixBlock`
CLALibReplace.`replace(CompressedMatrixBlock in, MatrixBlock out, double pattern, double replacement, int k)`
`static MatrixBlock`
CLALibReshape.`reshape(CompressedMatrixBlock in, int rows, int cols, boolean rowwise)`
`static MatrixBlock`
CLALibReshape.`reshape(CompressedMatrixBlock in, int rows, int cols, boolean rowwise, int k)`
`static MatrixBlock`
CLALibRexpand.`rexpand(CompressedMatrixBlock in, MatrixBlock ret, double max, boolean rows, boolean cast, boolean ignore, int k)`
`static MatrixBlock`
CLALibRightMultBy.`rightMultByMatrix(CompressedMatrixBlock m1, MatrixBlock m2, MatrixBlock ret, int k)`
`static MatrixBlock`
CLALibRightMultBy.`rightMultByMatrix(CompressedMatrixBlock m1, MatrixBlock m2, MatrixBlock ret, int k, boolean allowOverlap)`
`static MatrixBlock`
CLALibRemoveEmpty.`rmempty(CompressedMatrixBlock in, MatrixBlock ret, boolean rows, boolean emptyReturn, MatrixBlock select)`
CP rmempty operation (single input, single output matrix)
`static MatrixBlock`
CLALibScalar.`scalarOperations(ScalarOperator sop, CompressedMatrixBlock m1, MatrixValue result)`
`static MatrixBlock`
CLALibSlice.`slice(CompressedMatrixBlock cmb, int rl, int ru, int cl, int cu, boolean deep)`
`static List<MatrixBlock>`
CLALibSlice.`sliceBlocks(CompressedMatrixBlock cmb, int blen, int k)`
Slice blocks of compressed matrices from the compressed representation.
`static CompressedMatrixBlock`
CLALibSlice.`sliceColumns(CompressedMatrixBlock cmb, int cl, int cu)`
`static MatrixBlock`
CLALibSlice.`sliceRowsCompressed(CompressedMatrixBlock cmb, int rl, int ru)`
`static MatrixBlock`
CLALibSort.`sort(CompressedMatrixBlock mb, SortIndex fn)`
Sort (order) a compressed matrix in place of the `order` built-in, while keeping the result compressed.
`static MatrixBlock`
CLALibSort.`sort(CompressedMatrixBlock mb, MatrixValue weights, MatrixBlock result, int k)`
Compute the sorted value/weight table used by the quantile/median/IQM operations (the `sort` / qsort lop), exploiting compression to sort the few distinct values instead of all rows.
`static CompressedMatrixBlock`
CLALibSquash.`squash(CompressedMatrixBlock m, int k)`
Squash or recompress is process each column group in the given Compressed Matrix Block and tries to recompress each column.
`static MatrixBlock`
CLALibUnary.`unaryOperations(CompressedMatrixBlock m, UnaryOperator op, MatrixValue result)`

## Uses of CompressedMatrixBlock in org.apache.sysds.runtime.compress.plan

Methods in org.apache.sysds.runtime.compress.plan that return CompressedMatrixBlock
Modifier and Type
Method
Description
`CompressedMatrixBlock`
IPlanEncode.`encode(MatrixBlock in)`
Encode a given matrix block subject to the plan given, while erroring out in case of breaking compression
`CompressedMatrixBlock`
NaivePlanEncode.`encode(MatrixBlock in)`