Skip to content

Instantly share code, notes, and snippets.

@Steboss89
Created June 30, 2021 14:54
Show Gist options
  • Save Steboss89/95acc11c2e2d427b32e841a8c82f27b5 to your computer and use it in GitHub Desktop.
Save Steboss89/95acc11c2e2d427b32e841a8c82f27b5 to your computer and use it in GitHub Desktop.
let target_array = target.unwrap().to_ndarray::<Float64Type>().unwrap();
// create a vec type and populate with y values
let mut y: Vec<f64> = Vec::new();
for val in target_array.iter(){
y.push(*val);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment