Class CLALibRemoveEmpty
java.lang.Object
org.apache.sysds.runtime.compress.lib.CLALibRemoveEmpty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixBlockrmempty(CompressedMatrixBlock in, MatrixBlock ret, boolean rows, boolean emptyReturn, MatrixBlock select) CP rmempty operation (single input, single output matrix)
-
Constructor Details
-
CLALibRemoveEmpty
public CLALibRemoveEmpty()
-
-
Method Details
-
rmempty
public static MatrixBlock rmempty(CompressedMatrixBlock in, MatrixBlock ret, boolean rows, boolean emptyReturn, MatrixBlock select) CP rmempty operation (single input, single output matrix)- Parameters:
in- The input matrixret- The output matrixrows- If we are removing based on rows, or columns.emptyReturn- Return row/column of zeros for empty input.select- An optional selection vector, to remove based on rather than empty rows or columns- Returns:
- The result MatrixBlock, can be a different object that the caller used.
-