Real and complex arrays
- From: morten.langer@xxxxxxxxx
- Date: 25 Apr 2006 16:28:24 -0700
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?
.
- Follow-Ups:
- Re: Real and complex arrays
- From: Brooks Moses
- Re: Real and complex arrays
- From: glen herrmannsfeldt
- Re: Real and complex arrays
- Prev by Date: Re: rookie question
- Next by Date: Re: rookie question
- Previous by thread: Re: Compiling in 32 vs 64 platform problem
- Next by thread: Re: Real and complex arrays
- Index(es):
Relevant Pages
|
|