pub fn reshape_prosit_array(flat_array: Vec<f64>) -> Vec<Vec<Vec<f64>>>
Expand description
Reshape the flat prosit array into a 3D array of shape (29, 2, 3)
§Arguments
flat_array
- a vector of f64 representing the flat prosit array
§Returns
Vec<Vec<Vec<f64>>>
- a 3D array of shape (29, 2, 3)
§Example
use rustms::chemistry::utility::reshape_prosit_array;
let flat_array = vec![0.0; 174];
let reshaped_array = reshape_prosit_array(flat_array);
assert_eq!(reshaped_array.len(), 29);
assert_eq!(reshaped_array[0].len(), 2);
assert_eq!(reshaped_array[0][0].len(), 3);