Adds draft implementation of LR

This commit is contained in:
Volodymyr Orlov
2019-12-10 18:02:02 -08:00
parent b5e677e615
commit 4411b57219
11 changed files with 749 additions and 114 deletions
+4 -4
View File
@@ -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,