Real and complex arrays



Hi NG,

I have a problem with real and complex arrays in fortran. I have a
complex array signalComplex which contains complex numbers. I then use
abs(signalComplex) to get the magnitudes, and apparently abs() also
returns complex numbers - only with the complex part equal to 0. I can
live with that, but is there a way to get all these magnitudes (which
are now listed as real parts of a complex array) into a real array
(i.e. "dimensioned")? Or must I work with the complex array from now
on?

Thanks!

Best,

M.L.

PS I have tried the real(complexNumber) command, but it just returns 0,
and not the real part formatted as a real number?

.



Relevant Pages

  • Re: Real and complex arrays
    ... complex array signalComplex which contains complex numbers. ... and apparently abs() also ... but is there a way to get all these magnitudes (which ... I would be virtually certain that it's a bug in your code -- if it were a compiler bug, someone else would have noticed by now! ...
    (comp.lang.fortran)
  • Re: Real and complex arrays
    ... complex array signalComplex which contains complex numbers. ... and apparently abs() also ... Your compiler is defective. ... but is there a way to get all these magnitudes (which ...
    (comp.lang.fortran)
  • Re: Real and complex arrays
    ... complex array signalComplex which contains complex numbers. ... and apparently abs() also ... Your compiler is defective. ... but is there a way to get all these magnitudes (which ...
    (comp.lang.fortran)