Skip to content

Commit

Permalink
size gpu index point_vec
Browse files Browse the repository at this point in the history
  • Loading branch information
jamartin9 committed Aug 30, 2022
1 parent 8052b77 commit 7209b60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,9 @@ pub fn convert_gpu_data(
if let Some(point_slot) = point_vec.get_mut(index) {
point_slot.push((-time_from_start, *data_point));
} else {
point_vec.push(vec![(-time_from_start, *data_point)]);
let mut index_vec: Vec<Point> = Vec::with_capacity(data.gpu_data.len());
index_vec.push((-time_from_start, *data_point));
point_vec.push(index_vec);
}
}
});
Expand Down

0 comments on commit 7209b60

Please sign in to comment.