fix: more refactoring

This commit is contained in:
Volodymyr Orlov
2020-03-13 11:24:53 -07:00
parent cb4323f26e
commit 4f8318e933
15 changed files with 51 additions and 66 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
pub mod first_order;
pub mod line_search;
use crate::linalg::Matrix;
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;
pub type F<'a, X> = dyn for<'b> Fn(&'b X) -> f64 + 'a;
pub type DF<'a, X> = dyn for<'b> Fn(&'b mut X, &'b X) + 'a;
#[derive(Debug, PartialEq)]
pub enum FunctionOrder {