public class ColGroupOLE extends ColGroupOffset
ColGroupOffset.OffsetRowIterator, ColGroupOffset.OffsetValueIterator, ColGroupOffset.ZeroValueIteratorColGroup.CompressionType_data, _ptr, _skiplist, _zeros, ALLOW_CACHE_CONSCIOUS_ROWSUMS, CREATE_SKIPLIST, READ_CACHE_BLKSZ, WRITE_CACHE_BLKSZ_values, LOW_LEVEL_OPT, SORT_VALUES_BY_LENGTH_colIndexes, _numRows| Constructor and Description |
|---|
ColGroupOLE() |
ColGroupOLE(int[] colIndices,
int numRows,
boolean zeros,
double[] values,
char[] bitmaps,
int[] bitmapOffs) |
ColGroupOLE(int[] colIndices,
int numRows,
UncompressedBitmap ubm)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeColSums(MatrixBlock result,
org.apache.sysml.runtime.functionobjects.KahanFunction kplus) |
protected void |
computeRowMxx(MatrixBlock result,
org.apache.sysml.runtime.functionobjects.Builtin builtin,
int rl,
int ru) |
protected void |
computeRowSums(MatrixBlock result,
org.apache.sysml.runtime.functionobjects.KahanFunction kplus,
int rl,
int ru) |
protected void |
computeSum(MatrixBlock result,
org.apache.sysml.runtime.functionobjects.KahanFunction kplus) |
protected boolean[] |
computeZeroIndicatorVector()
Utility function of sparse-unsafe operations.
|
protected void |
countNonZerosPerRow(int[] rnnz,
int rl,
int ru)
Count the number of non-zeros per row
|
void |
decompressToBlock(MatrixBlock target,
int colpos)
Decompress to block.
|
void |
decompressToBlock(MatrixBlock target,
int[] colixTargets)
Decompress the contents of this column group into uncompressed packed
columns
|
void |
decompressToBlock(MatrixBlock target,
int rl,
int ru)
Decompress the contents of this column group into the specified full
matrix block.
|
ColGroup.CompressionType |
getCompType()
Obtain the compression type.
|
int[] |
getCounts() |
int[] |
getCounts(int rl,
int ru) |
Iterator<Integer> |
getIterator(int k) |
Iterator<Integer> |
getIterator(int k,
int rl,
int ru) |
void |
leftMultByRowVector(ColGroupDDC a,
MatrixBlock result) |
void |
leftMultByRowVector(MatrixBlock vector,
MatrixBlock result)
Multiply the slice of the matrix that this column group represents by a
row vector on the left (the original column vector is assumed to be
transposed already i.e.
|
void |
rightMultByVector(MatrixBlock vector,
MatrixBlock result,
int rl,
int ru)
Multiply the slice of the matrix that this column group represents by a
vector on the right.
|
ColGroup |
scalarOperation(org.apache.sysml.runtime.matrix.operators.ScalarOperator op)
Perform the specified scalar operation directly on the compressed column
group, without decompressing individual cells if possible.
|
computeOffsets, createCompressedBitmaps, estimateInMemorySize, get, getBitmapOffsets, getBitmaps, getExactSizeOnDisk, getIterator, hasZeros, len, mxxValues, readFields, sumAllValues, unaryAggregateOperations, writeallocDVector, allocIVector, applyScalarOp, applyScalarOp, cleanupThreadLocalMemory, computeColMxx, computeMxx, containsAllZeroValue, getCounts, getCountsAsBlock, getCountsAsBlock, getNumValues, getValue, getValues, getValuesAsBlock, preaggValues, preaggValues, setupThreadLocalMemory, sumAllValues, sumAllValues, sumValues, sumValues, sumValues, sumValues, unaryAggregateOperationsgetColIndex, getColIndices, getNumCols, getNumRows, shiftColIndicespublic ColGroupOLE()
public ColGroupOLE(int[] colIndices,
int numRows,
UncompressedBitmap ubm)
colIndices - indices (within the block) of the columns included in this
columnnumRows - total number of rows in the parent blockubm - Uncompressed bitmap representation of the blockpublic ColGroupOLE(int[] colIndices,
int numRows,
boolean zeros,
double[] values,
char[] bitmaps,
int[] bitmapOffs)
public ColGroup.CompressionType getCompType()
ColGroupgetCompType in class ColGrouppublic void decompressToBlock(MatrixBlock target, int rl, int ru)
ColGroupdecompressToBlock in class ColGroupOffsettarget - a matrix block where the columns covered by this column group
have not yet been filled in.rl - row lowerru - row upperpublic void decompressToBlock(MatrixBlock target, int[] colixTargets)
ColGroupdecompressToBlock in class ColGroupOffsettarget - a dense matrix block. The block must have enough space to hold
the contents of this column group.colixTargets - array that maps column indices in the original matrix block to
columns of target.public void decompressToBlock(MatrixBlock target, int colpos)
ColGroupdecompressToBlock in class ColGroupOffsettarget - dense output vectorcolpos - column to decompress, error if larger or equal numColspublic int[] getCounts()
getCounts in class ColGroupValuepublic int[] getCounts(int rl,
int ru)
getCounts in class ColGroupValuepublic ColGroup scalarOperation(org.apache.sysml.runtime.matrix.operators.ScalarOperator op) throws DMLRuntimeException
ColGroupscalarOperation in class ColGroupop - operation to performDMLRuntimeException - if DMLRuntimeException occurspublic void rightMultByVector(MatrixBlock vector, MatrixBlock result, int rl, int ru) throws DMLRuntimeException
ColGrouprightMultByVector in class ColGroupvector - vector to multiply by (tall vector)result - accumulator for holding the resultrl - row lowerru - row upperDMLRuntimeException - if the internal SystemML code that performs the
multiplication experiences an errorpublic void leftMultByRowVector(MatrixBlock vector, MatrixBlock result) throws DMLRuntimeException
ColGroupleftMultByRowVector in class ColGroupvector - row vectorresult - matrix block resultDMLRuntimeException - if DMLRuntimeException occurspublic void leftMultByRowVector(ColGroupDDC a, MatrixBlock result) throws DMLRuntimeException
leftMultByRowVector in class ColGroupValueDMLRuntimeExceptionprotected final void computeSum(MatrixBlock result, org.apache.sysml.runtime.functionobjects.KahanFunction kplus)
computeSum in class ColGroupOffsetprotected final void computeRowSums(MatrixBlock result, org.apache.sysml.runtime.functionobjects.KahanFunction kplus, int rl, int ru)
computeRowSums in class ColGroupOffsetprotected final void computeColSums(MatrixBlock result, org.apache.sysml.runtime.functionobjects.KahanFunction kplus)
computeColSums in class ColGroupOffsetprotected final void computeRowMxx(MatrixBlock result, org.apache.sysml.runtime.functionobjects.Builtin builtin, int rl, int ru)
computeRowMxx in class ColGroupOffsetprotected boolean[] computeZeroIndicatorVector()
computeZeroIndicatorVector in class ColGroupOffsetprotected void countNonZerosPerRow(int[] rnnz,
int rl,
int ru)
ColGroupcountNonZerosPerRow in class ColGrouprnnz - non-zeros per rowrl - row lower bound, inclusiveru - row upper bound, exclusivepublic Iterator<Integer> getIterator(int k)
getIterator in class ColGroupOffsetk - index of value tuple with associated bitmappublic Iterator<Integer> getIterator(int k, int rl, int ru)
getIterator in class ColGroupOffsetk - index of value tuple with associated bitmaprl - row lower index, inclusiveru - row upper index, exclusiveCopyright © 2017 The Apache Software Foundation. All rights reserved.