|
AI Engine API User Guide (AIE-API) 2024.2
|
Loading...
Searching...
No Matches
Reduction
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. | |
| template<Vector Vec> | |
| constexpr Vec::value_type | aie::reduce_mul (const Vec &v) |
| Returns a product of the elements in the input vector. | |
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
-
v Input vector. The type must meet aie::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
-
v Input vector. The type must meet aie::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
-
v Input vector. The type must meet aie::RealVector.
◆ reduce_mul()
template<Vector Vec>
|
constexpr |
Returns a product of the elements in the input vector.
- Parameters
-
v Input vector. The type must meet aie::Vector.