![]() |
AI Engine API User Guide
(AIE) 2021.2
|
Vectors can be reinterpreted as vectors with a different element type, as long as they have the same total size.
Vectors can be converted into accumulators. Their values can be shifted into a larger magnitude to implement fixed point precision schemes (this does not apply to floating point accumulators).
Conversely, accumulators can be converted into vectors. Their values can be shifted down before rounding and saturation is applied (this does not apply to floating point accumulators).
Functions |
|
template<ElemBaseTypeDstT,VectorVec> | |
auto | aie::vector_cast(const Vec &v) |
More... |
|
auto aie::vector_cast | ( | const Vec & | v | ) |
Reinterpret a vector using a different element type. The returned vector has the same size in bits as the input vector.
DstT | Element type for the returned vector. |
v | Input vector. |