src/main/java/org/apache/sysds/runtime/compress/utils/LinearAlgebraUtils.java
/**
	 * Adds the values list into all rows of c within row and col range.
	 * 
	 * @param values The values to Add
	 * @param c      The double array to add into
	 * @param rl     The row lower index
	 * @param ru     The row upper index
	 * @param cl     The column lower index
	 * @param cu     The column upper index
	 * @param cut    The total number of columns in c.
	 * @param valOff The offset into the values list to start reading from.
	 */
Adds the values list into all rows of c within row and col range.


Adds the values list into all rows of c within row and col range .
public static void vectListAdd(final double[] values, double[] c, final int rl, final int ru, final int cl,
		final int cu, final int cut, final int valOff) {
		for(int j = rl, off = rl * cut; j < ru; j++, off += cut) {
			for(int k = cl, h = valOff; k < cu; k++, h++)
				c[off + k] += values[h];
		}
	}
public static void vectListAdd ( final double [ ] values , double [ ] c , final int rl , final int ru , final int cl , final int cu , final int cut , final int valOff ) { for ( int j = rl , off = rl * cut ; j < ru ; j ++ , off += cut ) { for ( int k = cl , h = valOff ; k < cu ; k ++ , h ++ ) c [ off + k ] += values [ h ] ; } }
Adds the values list into all rows of c within row and col range.
Adds the values list into all rows of c within row and col range .