20 lines
448 B
Rust
20 lines
448 B
Rust
/// first order optimization algorithms
|
|
pub mod first_order;
|
|
/// line search algorithms
|
|
pub mod line_search;
|
|
|
|
/// Function f(x) = y
|
|
pub type F<'a, T, X> = dyn for<'b> Fn(&'b X) -> T + 'a;
|
|
/// Function df(x)
|
|
pub type DF<'a, X> = dyn for<'b> Fn(&'b mut X, &'b X) + 'a;
|
|
|
|
/// Function order
|
|
#[allow(clippy::upper_case_acronyms)]
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
pub enum FunctionOrder {
|
|
/// Second order
|
|
SECOND,
|
|
/// Third order
|
|
THIRD,
|
|
}
|