# [−][src]Struct argmin::solver::newton::newton_cg::NewtonCG

`pub struct NewtonCG<L> { /* fields omitted */ }`

The Newton-CG method (also called truncated Newton method) uses a modified CG to solve the Newton equations approximately. After a search direction is found, a line search is performed.

Example

# References:

[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.

## Methods

### `impl<L> NewtonCG<L>`[src]

Constructor

#### `pub fn curvature_threshold(self, threshold: f64) -> Self`[src]

Set curvature threshold

## Trait Implementations

### `impl<O, L> Solver<O> for NewtonCG<L> where    O: ArgminOp<Output = f64>,    O::Param: Send + Sync + Clone + Serialize + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, f64> + ArgminScaledAdd<O::Param, f64, O::Param> + ArgminMul<f64, O::Param> + ArgminZeroLike + ArgminNorm<f64>,    O::Hessian: Send + Sync + Clone + Serialize + Default + ArgminInv<O::Hessian> + ArgminDot<O::Param, O::Param>,    L: Clone + ArgminLineSearch<O::Param> + Solver<OpWrapper<O>>, `[src]

#### `fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason`[src]

Checks whether basic termination reasons apply. Read more

## Blanket Implementations

### `impl<T, U> TryFrom<U> for T where    U: Into<T>, `[src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

### `impl<T, U> TryInto<U> for T where    U: TryFrom<T>, `[src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.