#include #include std::vector > complex_vec_test0() { std::vector > r(5); for (size_t i = 0; i < r.size(); i++) r[i] = std::complex(i, i); return r; } std::vector > complex_vec_test1(const std::vector > &input) { std::vector > r(input.size()); for (size_t i = 0; i < input.size(); i++) r[i] = std::complex(input[i].real()+0.5, input[i].imag()-0.5); return r; } std::complex complex_scalar_test0() { return std::complex(5, 5); } std::complex complex_scalar_test1(std::complex input) { return std::complex(input.real()+0.5, input.imag()-0.5); } std::vector float_vec_test0() { std::vector r(5); for (size_t i = 0; i < r.size(); i++) r[i] = (float) i; return r; } std::vector float_vec_test1(const std::vector &input) { std::vector r(input.size()); for (size_t i = 0; i < input.size(); i++) r[i] = input[i] + 0.5; return r; } std::vector int_vec_test0() { std::vector r(5); for (size_t i = 0; i < r.size(); i++) r[i] = (int) i; return r; } std::vector int_vec_test1(const std::vector &input) { std::vector r(input.size()); for (size_t i = 0; i < input.size(); i++) r[i] = input[i] + 1; return r; }