From 6d8098778a8ee1bab95161f369051bced3662a7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Mon, 28 Oct 2024 13:21:28 +0100
Subject: [PATCH] feat : added PadBorderType::Zero & added documentation to
 known padding types

---
 include/aidge/operator/Pad.hpp | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/include/aidge/operator/Pad.hpp b/include/aidge/operator/Pad.hpp
index bc1852ec0..f2da306bb 100644
--- a/include/aidge/operator/Pad.hpp
+++ b/include/aidge/operator/Pad.hpp
@@ -26,7 +26,19 @@
 
 namespace Aidge {
 enum class PadAttr { BeginEndBorders, BorderType, BorderValue };
-enum class PadBorderType { Constant, Edge, Reflect, Wrap };
+enum class PadBorderType { 
+    /** @brief all out of bound values will be set to a given value.*/
+    Constant,
+    Edge, 
+    Reflect, 
+    Wrap, 
+    /** @brief all out of bound values will take the value 
+     *of their nearest neighbour
+     */
+    Nearest,
+    /** @brief all out of bound values will be set to 0.*/
+    Zero,
+};
 
 template <DimIdx_t DIM>
 class Pad_Op : public OperatorTensor,
-- 
GitLab