Function dual_num::partials_t[][src]

pub fn partials_t<T: Real + Num, M: DimName, N: DimName, F>(
    t: T,
    x: VectorN<T, M>,
    f: F
) -> (VectorN<T, N>, MatrixMN<T, N, M>) where
    F: Fn(T, &MatrixMN<Dual<T>, M, M>) -> MatrixMN<Dual<T>, N, M>,
    DefaultAllocator: Allocator<Dual<T>, M> + Allocator<Dual<T>, N, M> + Allocator<Dual<T>, M, M> + Allocator<T, N> + Allocator<T, M> + Allocator<T, N, M>, 

Computes the state and the partials matrix of the provided function with a preliminary time parameter.

How to read this signature:

Let t be a parameter, x be a state vector and f be a function whose gradient is seeked. Calling partials_t will return a tuple of ( f(t, x), ∂f(t, x)/∂x ). If the function f is defined as f: Y^{n} → Y^{n}, where Y is a given group, than partials_t returns the evaluation and gradient of f at position x, i.e. a tuple of ( f(t, x), ∇f(t, x) ).