This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Templates and Vector3cd

Tags: None
(comma "," separated)
jomegaA
Registered Member
Posts
1
Karma
0

Templates and Vector3cd

Thu Jan 31, 2019 6:07 pm
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell