template <typename T> std::vector <T> create_duplicated_lut ( const T* lut, size_t lut_size ) const
Creates a duplicated LUT by replicating entries based on duplicateLutEntry.
This function creates a duplicated lookup table where entries are replicated to meet the parallel access requirements of AIE-ML and AIE-MLv2 devices. For devices that support parallel access of 4 (int16 and bfloat16 on AIE-ML), every group of lutValsInLUTentry values is duplicated duplicateLutEntry times to enable efficient parallel memory access.
Parameters:
| T | The data type of the LUT entries (typically TT_LUT). |
| lut | Pointer to the original lookup table data. |
| lut_size | Size of the original lookup table in number of elements. |
Returns:
std::vector<T> The duplicated lookup table with replicated entries.