/*************************************** Auteur : Pierre Aubert Mail : aubertp7@gmail.com Licence : CeCILL-C ****************************************/ //some doc at : https://en.cppreference.com/w/cpp/header/algorithm #include //Some doc at : https://en.cppreference.com/w/cpp/header/execution #include #include "hadamard.h" ///Do a classical hadamard product /** @param[out] tabRes : table of the result * @param tabX : talbe of x values * @param tabY : table of y values * @param nbElement : number of elements in the tables */ void hadamard_product(float * tabRes, const float* tabX, const float* tabY, size_t nbElement){ std::transform(std::execution::par_unseq, tabX, tabX + nbElement, tabY, tabRes, [=](float xi, float yi){ return xi * yi; }); }