feat: simplifies LR API

This commit is contained in:
Volodymyr Orlov
2019-12-23 11:18:22 -08:00
parent c1d7c038a6
commit a4ff1cbe5f
4 changed files with 66 additions and 23 deletions
+6
View File
@@ -6,6 +6,12 @@ pub mod ndarray_bindings;
pub trait Matrix: Clone + Debug {
type RowVector: Clone + Debug;
fn from_row_vector(vec: Self::RowVector) -> Self;
fn to_row_vector(self) -> Self::RowVector;
fn from_array(nrows: usize, ncols: usize, values: &[f64]) -> Self;
fn from_vec(nrows: usize, ncols: usize, values: Vec<f64>) -> Self;