From 5fa0d5d889dff17a8e011971d80de7661ae130eb Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 12 Dec 2019 21:25:04 +0100 Subject: Add rust code --- src/simulation/time_evolution.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/simulation/time_evolution.rs (limited to 'src/simulation/time_evolution.rs') diff --git a/src/simulation/time_evolution.rs b/src/simulation/time_evolution.rs new file mode 100644 index 0000000..61c609e --- /dev/null +++ b/src/simulation/time_evolution.rs @@ -0,0 +1,11 @@ +use super::c64; +use ndarray::{Array1, Array2}; + +pub trait MatrixGen { + fn gen(t: f64) -> Array2; +} + +pub trait State { + fn fibrate(&self) -> Array1; + fn evolve(self, t: f64) -> Self; +} -- cgit v1.2.3-70-g09d2