#include "FunctionTable.hpp" /******************************************************** * Random number generation * ********************************************************/ /*template<> char genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> int8_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> uint8_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> int16_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> uint16_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> int32_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> uint32_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> int64_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> uint64_t genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_int_distribution dis; return dis( gen ); } template<> float genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_real_distribution dis; return dis( gen ); } template<> double genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_real_distribution dis; return dis( gen ); } template<> long double genRand() { static std::random_device rd; static std::mt19937 gen( rd() ); static std::uniform_real_distribution dis; return dis( gen ); } */ /******************************************************** * axpy * ********************************************************/ template <> void call_axpy(size_t, const float, const float*, float*) { ERROR("Not finished"); } template <> void call_axpy(size_t, const double, const double*, double*) { ERROR("Not finished"); } /******************************************************** * Multiply two arrays * ********************************************************/ template <> void call_gemv(size_t, size_t, double, double, const double*, const double*, double*) { ERROR("Not finished"); } template <> void call_gemv(size_t, size_t, float, float, const float*, const float*, float*) { ERROR("Not finished"); } template <> void call_gemm(size_t, size_t, size_t, double, double, const double*, const double*, double*) { ERROR("Not finished"); } template <> void call_gemm(size_t, size_t, size_t, float, float, const float*, const float*, float*) { ERROR("Not finished"); }