Skip to content
Snippets Groups Projects
Commit 99726a97 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Add docstring to PsVecHorizontal

parent 21df6f4b
No related branches found
No related tags found
1 merge request!438Reduction Support
......@@ -41,7 +41,16 @@ class PsVecBroadcast(PsUnOp, PsVectorOp):
class PsVecHorizontal(PsBinOp, PsVectorOp):
"""Extracts scalar value from N vector lanes."""
"""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.
Args:
scalar_operand: Scalar operand
vector_operand: Vector operand to be converted to a scalar value
reduction_op: Binary operation that is also used for the horizontal reduction
"""
__match_args__ = ("lanes", "scalar_operand", "vector_operand", "reduction_op")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment