code: public static FloatMatrix normalizeRows(FloatMatrix x) {
                  FloatMatrix temp = new FloatMatrix(x.columns);
  		for (int r = 0; r < x.rows; r++)
  			x.putRow(r, normalize(x.getRow(r, temp)));
  		return x;
  	}
docs: Normalize the rows of a matrix (in-place).