mathru/optimization/
optim.rs

1use crate::algebra::{
2    abstr::Real,
3    linear::{matrix::General, vector::vector::Vector},
4};
5
6pub trait Optim<T>
7where
8    T: Real,
9{
10    fn eval(&self, _x: &Vector<T>) -> Vector<T>;
11    // Computes the Jacobian at the given x
12    fn jacobian(&self, _x: &Vector<T>) -> General<T>;
13    /// Computes the Hessian at the given value x
14    fn hessian(&self, _x: &Vector<T>) -> General<T>;
15}