src/main/java/org/apache/sysds/runtime/compress/BitmapEncoder.java
/**
	 * Make single column bitmap.
	 * 
	 * @param distinctVals Distinct values contained in the bitmap, mapping to offsets for locations in the matrix.
	 * @param numZeros     Number of zero values in the matrix
	 * @return The single column Bitmap.
	 */
Make single column bitmap.

@param distinctVals Distinct values contained in the bitmap, mapping to offsets for locations in the matrix.
@param numZeros     Number of zero values in the matrix
@return The single column Bitmap.
Make single column bitmap . @param distinctVals Distinct values contained in the bitmap mapping to offsets for locations in the matrix . @param numZeros Number of zero values in the matrix @return The single column Bitmap .
private static Bitmap makeBitmap(DoubleIntListHashMap distinctVals, int numZeros) {
		int numVals = distinctVals.size();
		double[] values = new double[numVals];
		IntArrayList[] offsetsLists = new IntArrayList[numVals];
		int bitmapIx = 0;
		for(DIListEntry val : distinctVals.extractValues()) {
			values[bitmapIx] = val.key;
			offsetsLists[bitmapIx++] = val.value;
		}
		return new Bitmap(1, offsetsLists, numZeros, values);
	}
private static Bitmap makeBitmap ( DoubleIntListHashMap distinctVals , int numZeros ) { int numVals = distinctVals . size ( ) ; double [ ] values = new double [ numVals ] ; IntArrayList [ ] offsetsLists = new IntArrayList [ numVals ] ; int bitmapIx = 0 ; for ( DIListEntry val : distinctVals . extractValues ( ) ) { values [ bitmapIx ] = val . key ; offsetsLists [ bitmapIx ++ ] = val . value ; } return new Bitmap ( 1 , offsetsLists , numZeros , values ) ; }
Make single column bitmap.
Make single column bitmap .
// added for one pass bitmap construction // Convert inputs to arrays