From 39f135f8e02ec381031139a60c0ce5d7c1942be6 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 16 Apr 2023 12:49:01 +0200 Subject: [PATCH] added - operators --- galois_field.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/galois_field.hh b/galois_field.hh index 1ab1f8b..d6e3086 100644 --- a/galois_field.hh +++ b/galois_field.hh @@ -171,6 +171,18 @@ Value operator + (Value a, Value b) return Value(a.v ^ b.v); } +template +Value operator - (Value a) +{ + return a; +} + +template +Value operator - (Value a, Value b) +{ + return a + b; +} + template Index operator * (Index a, Index b) {