Interface CLALibSelectionMult
public interface CLALibSelectionMult
This lib is responsible for selecting and extracting specific rows or columns from a compressed matrix.
The operation performed is like a left matrix multiplication where the left side only have max 1 non zero per row.
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic booleanAnalyze if the given matrix is a selection matrix if on the left side of a matrix multiplication.static MatrixBlockleftSelection(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.
-
Field Details
-
LOG
static final org.apache.commons.logging.Log LOG
-
-
Method Details
-
leftSelection
static MatrixBlock 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.- Parameters:
right- Right hand side compressed matrixleft- Left hand side matrixret- Output matrix to put the result into.k- The parallelization degree.- Returns:
- The selected rows and columns of the input matrix
-
isSelectionMatrix
Analyze if the given matrix is a selection matrix if on the left side of a matrix multiplication.- Parameters:
mb- The given matrix that should be on the left side- Returns:
- If it is selective
-