public abstract class ColGroupCompressed extends AColGroup
AColGroup.CompressionType
Modifier and Type | Method and Description |
---|---|
void |
computeColSums(double[] c,
int nRows)
Compute the column sum
|
double |
getMax()
Short hand method for getting maximum value contained in this column group.
|
double |
getMin()
Short hand method for getting minimum value contained in this column group.
|
abstract double[] |
getValues()
Get all the values in the colGroup.
|
abstract boolean |
isLossy()
Is Lossy
|
void |
tsmm(MatrixBlock ret,
int nRows)
Do a transposed self matrix multiplication on the left side t(x) %*% x.
|
void |
unaryAggregateOperations(AggregateUnaryOperator op,
double[] c,
int nRows,
int rl,
int ru)
Unary Aggregate operator, since aggregate operators require new object output, the output becomes an uncompressed
matrix.
|
binaryRowOp, colSum, containsValue, copy, countNonZerosPerRow, decompressToBlock, decompressToBlock, estimateInMemorySize, get, getColIndices, getCompType, getExactSizeOnDisk, getNumberNonZeros, getNumCols, getNumValues, getValuesAsBlock, isDense, leftMultByAColGroup, leftMultByMatrix, leftMultByMatrix, readFields, replace, rightMultByMatrix, scalarOperation, shiftColIndices, sliceColumn, sliceColumns, toString, tsmmAColGroup, write
public abstract double[] getValues()
AColGroup
public abstract boolean isLossy()
AColGroup
public double getMin()
AColGroup
public double getMax()
AColGroup
public void computeColSums(double[] c, int nRows)
AColGroup
computeColSums
in class AColGroup
c
- The array to add the column sum to.nRows
- The number of rows in the column group.public final void unaryAggregateOperations(AggregateUnaryOperator op, double[] c, int nRows, int rl, int ru)
AColGroup
unaryAggregateOperations
in class AColGroup
op
- The operator usedc
- The output matrix blocknRows
- The total number of rows in the Column Grouprl
- The Starting Row to do aggregation fromru
- The last Row to do aggregation to (not included)public final void tsmm(MatrixBlock ret, int nRows)
AColGroup
Copyright © 2021 The Apache Software Foundation. All rights reserved.