Cross product of vectors in C++
问题 As a part of a program that I'm writing, I need to find the cross product of a vector of doubles and a vector of complex doubles. I've written a function that I feel should do this, but when I call it, I get the following error: error: no matching function for call to ‘CrossProduct1D(std::vector< double, std::allocator<double> >&, std::vector<std::complex<double>, std::allocator<std::complex<double> > >&)’ Here is my code: #include <iostream> #include <fstream> #include <sstream> #include