![]() |
AI Engine API User Guide
(AIE) 2021.2
|
Functions |
|
template |
|
auto | aie::to_fixed(constvector< T, Elems > &v, int shift=0) ->vector< std::conditional_t< std::is_same_v< T, float >,int32, cint32 >, Elems > |
More... |
|
template |
|
auto | aie::to_fixed(T a, int shift=0) |
More... |
|
template |
|
auto | aie::to_float(constvector< T, Elems > &v, int shift=0) |
More... |
|
template |
|
auto | aie::to_float(T a, int shift=0) |
More... |
|
auto aie::to_fixed | ( | constvector< T, Elems > & | v, |
int | shift=0 |
||
) | ->vector |
Convert the elements in a floating point vector into fixed-point values.
v | Input vector. |
shift | Position of the point in the output values. |
auto aie::to_fixed | ( | T | a, |
int | shift=0 |
||
) |
Convert a floating point value into a fixed-point value.
a | Input value. |
shift | Position of the point in the output value. |
auto aie::to_float | ( | constvector< T, Elems > & | v, |
int | shift=0 |
||
) |
Convert the elements in a fixed-point vector into floating point values.
v | Input vector. |
shift | Position of the point in the input values. |
auto aie::to_float | ( | T | a, |
int | shift=0 |
||
) |
Convert a a fixed-point value into a floating point value.
a | Input value. |
shift | Position of the point in the input value. |