perr

09-19-2010, 07:45 AM

Hi all,

When I have declared the variables A, B and C of type VecComplex in this fashion:

VecComplex A(N), B(N), C(N);

How can I perform elementary algebraic operations like plus, multiplication and so on? E.g.:

A = B + C;

When I do this, I get the error message " error: no match for ‘operator=’ .... ".

Is there a built-in NR-routine to deal with this?

Regards, perr

When I have declared the variables A, B and C of type VecComplex in this fashion:

VecComplex A(N), B(N), C(N);

How can I perform elementary algebraic operations like plus, multiplication and so on? E.g.:

A = B + C;

When I do this, I get the error message " error: no match for ‘operator=’ .... ".

Is there a built-in NR-routine to deal with this?

Regards, perr