//! Trust-NCG algorithm trait.
use crateDType;
use Var;
use Result as NumrResult;
use Runtime;
use Tensor;
use ;
use crateOptimizeResult;
/// Trust-NCG: Trust region with Steihaug-Toint conjugate gradient subproblem.
///
/// Uses CG to approximately solve the trust region subproblem. Handles
/// negative curvature by truncating at the trust region boundary.
/// Memory: O(n) per iteration.