src/main/java/org/apache/sysds/runtime/compress/colgroup/ADictionary.java
/**
	 * Aggregates the columns into the target double array provided.
	 * 
	 * @param c          The target double array, this contains the full number of columns, therefore the colIndexes for
	 *                   this specific dictionary is needed.
	 * @param fn         The function to apply to individual columns
	 * @param colIndexes The mapping to the target columns from the individual columns
	 */
Aggregates the columns into the target double array provided.

@param c          The target double array, this contains the full number of columns, therefore the colIndexes for
this specific dictionary is needed.
@param fn         The function to apply to individual columns
@param colIndexes The mapping to the target columns from the individual columns
Aggregates the columns into the target double array provided . @param c The target double array this contains the full number of columns therefore the colIndexes for this specific dictionary is needed . @param fn The function to apply to individual columns @param colIndexes The mapping to the target columns from the individual columns
public void aggregateCols(double[] c, Builtin fn, int[] colIndexes) {
		int ncol = colIndexes.length;
		int vlen = getValuesLength() / ncol;
		for(int k = 0; k < vlen; k++)
			for(int j = 0, valOff = k * ncol; j < ncol; j++)
				c[colIndexes[j]] = fn.execute(c[colIndexes[j]], getValue(valOff + j));
	}
public void aggregateCols ( double [ ] c , Builtin fn , int [ ] colIndexes ) { int ncol = colIndexes . length ; int vlen = getValuesLength ( ) / ncol ; for ( int k = 0 ; k < vlen ; k ++ ) for ( int j = 0 , valOff = k * ncol ; j < ncol ; j ++ ) c [ colIndexes [ j ] ] = fn . execute ( c [ colIndexes [ j ] ] , getValue ( valOff + j ) ) ; }
Aggregates the columns into the target double array provided.
Aggregates the columns into the target double array provided .
// double[] ret = init; // System.out.println(c.length + " " + ncol); // return c;