e NCG iterations are restarted every _n_ iterations, where _n_ is 
% specified by user by setting the |RestartIters| parameter.
%
% Another restart modification available in |ncg| that was suggested by
% Nocedal and Wright [3] is taking a step in the direction of steepest
% descent when two consecutive gradients are far from orthogonal.
% Specifically, a steepest descent step is taking when
% 
% $$\frac{|g_{i+1}^T g_{i}|}{\|g_{i+1}\|} \geq \nu $$ 
%
% where $\nu$ is specified by the user by setting the |Res