pub fn from_data(nrows: usize, ncols: usize, data: Vec<f64>) -> Result<Self, String> {
        if data.len() == nrows * ncols {
            Ok(Matrix { data, nrows, ncols })
        } else {
            Err("data.len() != nrows * ncols".to_string())
        }
    }
/// Uses `data` to init the Array2.  Set it up in col major form!
Uses `data` to init the Array2.  Set it up in col major form!
Uses ` data ` to init the Array2 . Set it up in col major form!
pub fn from_data(nrows: usize, ncols: usize, data: Vec<f64>) -> Result<Self, String> {
        if data.len() == nrows * ncols {
            Ok(Matrix { data, nrows, ncols })
        } else {
            Err("data.len() != nrows * ncols".to_string())
        }
    }
pub fn from_data ( nrows : usize , ncols : usize , data : Vec < f64 > ) -> Result < Self , String > { if data . len ( ) == nrows * ncols { Ok ( Matrix { data , nrows , ncols } ) } else { Err ( " " . to_string ( ) ) } }
Uses `data` to init the Array2.
Uses ` data ` to init the Array2 .
nrows
usize
ncols
usize
data
Vec<f64>