code: public void setFunction( GradientLineFunction function , double funcMinValue ) {
  		this.function = function;
  		this.funcMinValue = funcMinValue;
  
  		lineSearch.setFunction(function,funcMinValue);
  		N = function.getN();
  
  		B = new DMatrixRMaj(N,N);
  		searchVector = new DMatrixRMaj(N,1);
  		g = new DMatrixRMaj(N,1);
  		s = new DMatrixRMaj(N,1);
  		y = new DMatrixRMaj(N,1);
  		x = new DMatrixRMaj(N,1);
  
  		temp0_Nx1 = new DMatrixRMaj(N,1);
  		temp1_Nx1 = new DMatrixRMaj(N,1);
  	}
docs: Specify the function being optimized
  @param function Function to optimize
  @param funcMinValue Minimum possible function value. E.g. 0 for least squares.