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§
Provided Methods§
Sourcefn jacobian(&self, x: &[S], jac: &mut [S])
fn jacobian(&self, x: &[S], jac: &mut [S])
Evaluate the Jacobian J = ∂F/∂x. If None, finite differences will be used.
Sourcefn has_jacobian(&self) -> bool
fn has_jacobian(&self) -> bool
Whether analytical Jacobian is available.