Class MatrixBlockFromFrame
java.lang.Object
org.apache.sysds.runtime.frame.data.lib.MatrixBlockFromFrame
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final org.apache.commons.logging.Logstatic Boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixBlockconvertToMatrixBlock(FrameBlock frame, int k) Converts a frame block with arbitrary schema into a matrix block.static MatrixBlockconvertToMatrixBlock(FrameBlock frame, MatrixBlock ret, int k) Converts a frame block with arbitrary schema into a matrix block.
-
Field Details
-
LOG
public static final org.apache.commons.logging.Log LOG -
blocksizeIJ
public static final int blocksizeIJ- See Also:
-
WARNED_FOR_FAILED_CAST
-
-
Method Details
-
convertToMatrixBlock
Converts a frame block with arbitrary schema into a matrix block. Since matrix block only supports value type double, we do a best effort conversion of non-double types which might result in errors for non-numerical data.- Parameters:
frame- Frame block to convertk- The parallelization degree- Returns:
- MatrixBlock
-
convertToMatrixBlock
Converts a frame block with arbitrary schema into a matrix block. Since matrix block only supports value type double, we do a best effort conversion of non-double types which might result in errors for non-numerical data.- Parameters:
frame- FrameBlock to convertret- The returned MatrixBlockk- The parallelization degree- Returns:
- MatrixBlock
-