title: DSP - Converting a sampled signal from real samples to complex samples and vice versa
body: <p>How can I convert baseband sampled signal from real-valued samples to complex-valued samples (real,imaginary) and vice-versa.</p>
  
  <p>My samples are integers, and I'm looking for a fast (but accurate) conversion algorithms.</p>
  
  <p>A C++ sample code (real, not complex ;-) would be more than welcome.</p>
  
  <p><strong>Edit</strong>: IPP code will be much welcome.</p>
  
  <p><strong>Edit:</strong> I'm looking for a method that will convert <em>n</em> real-samples to <em>n/2</em> complex-samples and vice-versa, without affecting the bandwidth.</p>