pub fn hessian_ndarray<F: Float + BtapeThreadLocal>(
f: impl FnOnce(&[BReverse<F>]) -> BReverse<F>,
x: &Array1<F>,
) -> (F, Array1<F>, Array2<F>)Available on crate feature
ndarray only.Expand description
Record and compute the Hessian, returning (value, gradient, hessian).