Loading [MathJax]/extensions/tex2jax.js
AI Engine API User Guide (AIE) 2023.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
Reduction

Vector reduction operations. More...

Overview

Vector reduction operations.

Functions

template<Vector Vec>
Vec::value_type aie::reduce_add (const Vec &v)
 Returns sum of the elements in the input vector.
 
template<RealVector Vec>
Vec::value_type aie::reduce_max (const Vec &v)
 Returns the element from the input vector with the largest value.
 
template<RealVector Vec>
Vec::value_type aie::reduce_min (const Vec &v)
 Returns the element from the input vector with the smallest value.
 

Function Documentation

◆ reduce_add()

template<Vector Vec>
Vec::value_type aie::reduce_add ( const Vec &  v)

Returns sum of the elements in the input vector.

Parameters
vInput vector. The type must meet Vector.

◆ reduce_max()

template<RealVector Vec>
Vec::value_type aie::reduce_max ( const Vec &  v)

Returns the element from the input vector with the largest value.

Parameters
vInput vector. The type must meet RealVector.

◆ reduce_min()

template<RealVector Vec>
Vec::value_type aie::reduce_min ( const Vec &  v)

Returns the element from the input vector with the smallest value.

Parameters
vInput vector. The type must meet RealVector.