Function ncollide_utils::bfgs [] [src]

pub fn bfgs<V, SS, F, D>(niter: usize, ss: &SS, guess: V, hessian: V::OuterProductType, f: &mut F, df: &mut D) -> V where V: Vector + Outer + Mul<V::OuterProductType, Output=V>, F: Fn(&V) -> V::Scalar, D: Fn(&V) -> V, V::OuterProductType: SquareMatrix<V::Scalar, V> + Add<V::OuterProductType, Output=V::OuterProductType> + Sub<V::OuterProductType, Output=V::OuterProductType> + Clone + Copy, SS: LineSearch<V::Scalar, V>

Minimizes a function using the quasi-newton BFGS method.