From 38c9e32446b6c0dd8619b41bb8b422ffab4b1797 Mon Sep 17 00:00:00 2001
From: Carl Philipp Klemm <philipp@uvos.xyz>
Date: Tue, 8 Oct 2024 13:31:48 +0200
Subject: [PATCH] DataPoint: add * and / operators against other DataPoint

---
 eisgenerator/eistype.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/eisgenerator/eistype.h b/eisgenerator/eistype.h
index 8670153..ce58c77 100644
--- a/eisgenerator/eistype.h
+++ b/eisgenerator/eistype.h
@@ -74,6 +74,18 @@ public:
 		out.im = out.im + in.im;
 		return out;
 	}
+	DataPoint operator/(const DataPoint& in) const
+	{
+		DataPoint out(*this);
+		out.im = out.im / in.im;
+		return out;
+	}
+	DataPoint operator*(const DataPoint& in) const
+	{
+		DataPoint out(*this);
+		out.im = out.im * in.im;
+		return out;
+	}
 	DataPoint operator/(fvalue in) const
 	{
 		DataPoint out(*this);
-- 
GitLab