Re: [eigen] Assignment of Complex Number

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


> you could replace the
> entire loop by the following two statements, Eigen will take care of the
> rest internally:
>
> ComplexVector.real() = FirstVector;
> ComplexVector.imag() = SecondVector;

Any feel for that (two passes over memory) vs one pass (with likely
useless multiplication):

ComplexVector = FirstVector * std::complex<double>(0,1)*SecondVector;

- Rhys



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/