I agree and wasn’t clear with my last message. It’s implicit, but right now, if I have
std::vector1<double> a1 = {2, 3};
std::vector2<double> a2 = {1, -1};
then for the following two cases (there are other cases it considers):
- In the
scalar, std::vectorcase, the framework will testpow(2, std::vector<double>(5, 1))andpow(3, std::vector<double>(5, -1)). - In the
std::vector, std::vectorcase, the framework will testpow(a1, a2), i.e.{pow(2, 1), pow(3, -1)}.
My comment for the std::vector, std::vector case was about whether it should instead test pow(std::vector<double>(5, 2), std::vector<double>(5, 1)) and pow(std::vector<double>(5, 3), std::vector<double>(5, -1)) instead of pow(a1, a2). pow(std::vector<double>(5, 2), std::vector<double>(5, 1)) would be easier to test with the pair formulation.