Skip to main content

NonlinearSystem

Trait NonlinearSystem 

Source
pub trait NonlinearSystem<S: Scalar>: Send + Sync {
    // Required methods
    fn dim(&self) -> usize;
    fn eval(&self, x: &[S], f: &mut [S]);

    // Provided methods
    fn jacobian(&self, x: &[S], jac: &mut [S]) { ... }
    fn has_jacobian(&self) -> bool { ... }
}
Expand description

Trait for nonlinear systems F(x) = 0.

Required Methods§

Source

fn dim(&self) -> usize

Dimension of the system.

Source

fn eval(&self, x: &[S], f: &mut [S])

Evaluate F(x) and store result in f.

Provided Methods§

Source

fn jacobian(&self, x: &[S], jac: &mut [S])

Evaluate the Jacobian J = ∂F/∂x. If None, finite differences will be used.

Source

fn has_jacobian(&self) -> bool

Whether analytical Jacobian is available.

Implementors§