From da00b78ff50a2b5e61ae0d9ad53f56d3a6bc4c4d Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Fri, 25 Apr 2025 12:58:57 +0200
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Frederik Hennig <frederik.hennig@fau.de>
---
 src/pystencils/backend/ast/vector.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/pystencils/backend/ast/vector.py b/src/pystencils/backend/ast/vector.py
index 55db67e7c..d7ae8d6a9 100644
--- a/src/pystencils/backend/ast/vector.py
+++ b/src/pystencils/backend/ast/vector.py
@@ -41,10 +41,9 @@ class PsVecBroadcast(PsUnOp, PsVectorOp):
 
 
 class PsVecHorizontal(PsBinOp, PsVectorOp):
-    """Represents a binary operation between a scalar and a vector operand.
-    With the binary operation not being vectorized, a horizontal reduction
-    along the lanes of the vector operand is required to extract a scalar value.
-    The result type will be equal to the scalar operand.
+    """Perform a horizontal reduction across a vector onto a scalar base value.
+
+    **Example:** vec_horizontal_add(s, v)` will compute `s + v[0] + v[1] + ... + v[n-1]`.
 
     Args:
         scalar_operand: Scalar operand
-- 
GitLab