From 468ebf09cc330c2448b90ed27e090e1613336045 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Mon, 19 Dec 2022 17:24:23 +0100 Subject: [PATCH] WIP: Added `#[derive(Clone)]` to `Dataset` and `Trajectory` --- reCTBN/src/tools.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reCTBN/src/tools.rs b/reCTBN/src/tools.rs index ecfeff9..47a067d 100644 --- a/reCTBN/src/tools.rs +++ b/reCTBN/src/tools.rs @@ -5,6 +5,7 @@ use ndarray::prelude::*; use crate::sampling::{ForwardSampler, Sampler}; use crate::{params, process}; +#[derive(Clone)] pub struct Trajectory { time: Array1, events: Array2, @@ -29,6 +30,7 @@ impl Trajectory { } } +#[derive(Clone)] pub struct Dataset { trajectories: Vec, }