Re: [eigen] casting real array to a segement of complex array

[ Thread Index | Date Index | More Archives ]

I think

snr1dft..segment(iminf,imaxf-iminf+1)=snr1.cast<std::complex<double> >( );

should work, provided the two array lengths are the same.

-- Trevor

On 16 May 2012 15:35, Fitzpatrick, Denis F <Denis.Fitzpatrick@xxxxxxxxxxxx> wrote:

The following:




where snr1dft is ArrayXcd and snr1 is ArrayXd gives




How can I make this work?


Denis Fitzpatrick


Boys Town National Research Hospital

(402) 498-6378



Mail converted by MHonArc 2.6.19+