num_dual

Function try_jacobian

source
pub fn try_jacobian<G, T: DualNum<F>, F: DualNumFloat, E, M: Dim, N: Dim>(
    g: G,
    x: OVector<T, N>,
) -> Result<(OVector<T, M>, OMatrix<T, M, N>), E>
where G: FnOnce(OVector<DualVec<T, F, N>, N>) -> Result<OVector<DualVec<T, F, N>, M>, E>, DefaultAllocator: Allocator<M> + Allocator<N> + Allocator<M, N> + Allocator<Const<1>, N>,
Expand description

Variant of jacobian for fallible functions.