Thread: dependencies
View Single Post
  #1 (permalink)  
Old 02-09-2010, 09:47 PM
uche
Guest
 
Posts: n/a
Default dependencies

hi,

can anyone point me in the right direction to take reduce the
dependencies of this algorithm:

for (i=0; i < m; i++)
{

n1 = n2;
n2 = n2 + n2;
e = -6.283185307179586/n2;
a = 0.0;

for (j=0; j < n1; j++)
{
c = cos(a);
s = sin(a);
a = a + e;

for (k=j; k < n; k=k+n2)
{

{
t1 = c*x[k+n1] - s*y[k+n1];
t2 = s*x[k+n1] + c*y[k+n1];
x[k+n1] = x[k] - t1;
y[k+n1] = y[k] - t2;
x[k] = x[k] + t1;
y[k] = y[k] + t2;
}

}
}
}
Reply With Quote