code: public static FloatMatrix centerColumns(FloatMatrix x) {
                  FloatMatrix temp = new FloatMatrix(x.rows);
  		for (int c = 0; c < x.columns; c++)
  			x.putColumn(c, center(x.getColumn(c, temp)));
  		return x;
  	}
docs: Center the columns of a matrix (in-place).