Adds draft implementation of LR
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
pub mod first_order;
|
||||
pub mod line_search;
|
||||
|
||||
use crate::linalg::Vector;
|
||||
use crate::linalg::Matrix;
|
||||
|
||||
type F<X: Vector> = dyn Fn(&X) -> f64;
|
||||
type DF<X: Vector> = dyn Fn(&mut X, &X);
|
||||
pub type F<'a, X: Matrix> = dyn for<'b> Fn(&'b X) -> f64 + 'a;
|
||||
pub type DF<'a, X: Matrix> = dyn for<'b> Fn(&'b mut X, &'b X) + 'a;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum FunctionOrder {
|
||||
FIRST,
|
||||
SECOND,
|
||||
|
||||
Reference in New Issue
Block a user