Registered Member
|
Hello to all and here is my first post!!!
My template signature would look like below and intend to pass the arguments of type Vector3cd for T and Vector3d for U into it and inside of the method I want to store the vector components more generically instead of fixed type as below template<typename T, typename U> T CombinedModeMatchingAndMoM::CrossProductTest(T x, U y) { complex<double> a_x = x[0]; complex<double> a_y = x[1]; complex<double> a_z = x[2]; } How could l replace complex<double> with generic type using the type Vector3cd? Any help is greatly appreciated. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell