From: robin on 30 Jan 2010 18:50 "Ragu" <ssragunath(a)gmail.com> wrote in message news:aefd68ad-9666-4391-a7f1-31cc7433bc5b(a)m16g2000yqc.googlegroups.com... On Jan 27, 6:58 pm, "robin" <robi...(a)bigpond.com> wrote: >> | 1. How do I print the ABS(cdata) in the same implied do loop ? > >> Just put ABS(cdata) in the same implied-DO. >If it is not a big thing can you please give me a sample syntax. The >combination that I tried showed up as errors. Your implied-DO was: (cdata(ii), ii = 1, 4) To include ABS(cdata) it becomes: (cdata(ii), ABS(cdata(ii)), ii = 1, 4) >> | Or >> | would you advise me to just print real(cdata(ii)), imag(cdata(ii)), abs >> | (cdata(ii)) in a normal do loop? >> | 2. Is it possible to avoid the use of a temporary variable in Part 2 >> | using implied do loop ? > >> Yes. >Umm. Can you provide some details ? Does it involves transfer and >reshaping that I have totally avoided till date ? No. |