benchmark/fourier/parallel/pi/xeonphi/openmp/fourier-parallel-pi-xeonphi-openmp.c
data_t omega(uint32_t N, uint32_t k){
  data_t o;

  o.re =  cos(2.0*M_PI/N*k);
  o.im = -sin(2.0*M_PI/N*k);

  return o;
}
// This function returns (by value) the primitive N-th root of unity of the
// complex field \mathbb{C} the power of k, which is given by
//
//   e^{-2\pi k/N} = (cos 2\pi/N - i sin 2\pi/N)^k   (by Euler's formula)
//                 = cos 2\pi/N*k - i sin 2\pi/N*k   (by De Moivre's formula)
//
// (Note: this can be overriden to provide support for more general transforms
//        on arbitrary fields)
//
//   N:                      Order of the cyclic group.
//   k:                      Power to raise the root of unity to.
//
//   returns:                N-th primitive root of unity of \mathbb{C}, raised
//                           to the power of k.
// 
This function returns (by value) the primitive N-th root of unity of the
complex field \mathbb{C} the power of k, which is given by



this can be overriden to provide support for more general transforms
on arbitrary fields)

Order of the cyclic group.
k:                      Power to raise the root of unity to.

N-th primitive root of unity of \mathbb{C}, raised
to the power of k.
This function returns ( by value ) the primitive N - th root of unity of the complex field \ mathbb { C } the power of k which is given by this can be overriden to provide support for more general transforms on arbitrary fields ) Order of the cyclic group . k : Power to raise the root of unity to . N - th primitive root of unity of \ mathbb { C } raised to the power of k .
data_t omega(uint32_t N, uint32_t k){
  data_t o;
  o.re =  cos(2.0*M_PI/N*k);
  o.im = -sin(2.0*M_PI/N*k);
  return o;
}
data_t omega ( uint32_t N , uint32_t k ) { data_t o ; o . re = cos ( 2.0 * M_PI / N * k ) ; o . im = - sin ( 2.0 * M_PI / N * k ) ; return o ; }
This function returns (by value) the primitive N-th root of unity of the
complex field \mathbb{C} the power of k, which is given by
This function returns ( by value ) the primitive N - th root of unity of the complex field \ mathbb { C } the power of k which is given by