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

FFT in eigen

Tags: None
(comma "," separated)
Akkawe
Registered Member
Posts
35
Karma
0
OS

FFT in eigen

Wed Feb 08, 2012 8:48 pm
I am using the default FFT in eigen:
Code: Select all
#include <unsupported/Eigen/FFT>
using namespace Eigen;
FFT<double> fft;
fft.SetFlag(fft.HalfSpectrum);
fft.fwd(*A,*B);

This works when A is defined as std::vector<complex<double> >.
but doesn't work if I define A as vector of eigen: VectorXcd
What do I have to change?
thanks
jitseniesen
Registered Member
Posts
204
Karma
2

Re: FFT in eigen

Thu Feb 09, 2012 9:21 am
From a quick look at the source code, my guess would be:
Code: Select all
fft.fwd(A,B)
Akkawe
Registered Member
Posts
35
Karma
0
OS

Re: FFT in eigen

Fri Feb 10, 2012 8:22 pm
jitseniesen wrote:From a quick look at the source code, my guess would be:
Code: Select all
fft.fwd(A,B)

if the type is VectorXcd * then the right code is

Code: Select all
fft.fwd((*A),(*B))

and not

Code: Select all
fft.fwd(*A,*B)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]