mathru 0.16.2

Fundamental algorithms for scientific computing in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::algebra::{
    abstr::Real,
    linear::{matrix::General, vector::vector::Vector},
};

pub trait Optim<T>
where
    T: Real,
{
    fn eval(&self, _x: &Vector<T>) -> Vector<T>;
    // Computes the Jacobian at the given x
    fn jacobian(&self, _x: &Vector<T>) -> General<T>;
    /// Computes the Hessian at the given value x
    fn hessian(&self, _x: &Vector<T>) -> General<T>;
}