1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use crate::algebra::{ abstr::Real, linear::{Matrix, Vector}, }; pub trait Optim<T> where T: Real { fn eval(&self, _x: &Vector<T>) -> Vector<T> { unimplemented!(); } // Computes the Jacobian at the given x fn jacobian(&self, _x: &Vector<T>) -> Matrix<T> { unimplemented!(); } /// Computes the Hessian at the given value x fn hessian(&self, _x: &Vector<T>) -> Matrix<T> { unimplemented!(); } }