Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 11
Member Avatar for akhal

Hej I got this problem while trying to build project in VS2010: [b][b][code] fft_test.obj : error LNK2005: "void __cdecl fft(int,double (*)[2],double (*)[2])" (?fft@@YAXHPAY01N0@Z) already defined [b]1>in fft.obj 1>fft_test.obj : error LNK2005: "void __cdecl fft_rec(int,int,int,double (*)[2],double (*)[2],double (*)[2])" (?fft_rec@@YAXHHHPAY01N00@Z) already defined in fft.obj 1>fft_test.obj : error LNK2005: "void __cdecl ifft(int,double (*)[2],double …

Member Avatar for akhal
0
287
Member Avatar for akhal

Hi I have to pass a 2D array by reference to a constructor of a call where it manipulates this array. I have found out one way of doing so as: [code] class calc{ double (*my_a)[size]; calc(double (*arr)[size] /* or double [][size] */) : arr(my_a) {} // Passing array in …

Member Avatar for NathanOliver
0
417
Member Avatar for akhal

Hej Its too simple looking but I need c++ code to round off any floating point number to the nearest 1000th. I read somewhere to do it like this: [code] double number = cos(theta); double rounded_1000th = floor((x*1000.0 + 0.5)/1000.0); [/code] But this solution fails for numbers less than zero …

Member Avatar for WaltP
0
54
Member Avatar for akhal

Hi I am working on fast fourier transform where I have to use std::complex<> template class types. I have a situation where I want to calculate nth roots of unity as follows w = pow(e, 2*pi*j/n) Where e is eulers constant, and j=sqrt(-1.0); But this doesnt work for me as …

Member Avatar for akhal
0
295