Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!sunc.osc.edu!xipe.osc.edu!djh From: djh@xipe.osc.edu (David Heisterberg) Newsgroups: comp.lang.fortran Subject: Re: Array Notation Message-ID: <1271@sunc.osc.edu> Date: 4 Jan 91 17:18:35 GMT References: <1991Jan4.004719.21640@ariel.unm.edu> Sender: news@osc.edu Organization: Ohio SuperComputer Center, Columbus, OH, USA Lines: 25 Nntp-Posting-Host: xipe.osc.edu In article <1991Jan4.004719.21640@ariel.unm.edu> john@ghostwheel.unm.edu (John Prentice) writes: >The sort of place I expect the Cray has trouble with array syntax is: > A=B+C > D=E+F >where these arrays are all the same length. In a do-loop, one would do: > do 10 i=1,len > a(i)=b(i)+c(i) > d(i)=e(i)+f(i) > 10 continue FPP 3.00Z36 will do exactly that. Also, given A (N, M), B (N, M), C (N, M) and C = A + B FPP will produce DO xxxxx J1X = 1, N*M C (J1X, 1) = A (J1X, 1) + B (J1X, 1) xxxxx CONTINUE I love it when compilers get better. But I do have CONVEX-envy when it comes to some constructs that the CRAY compiler still won't attempt. -- David J. Heisterberg djh@osc.edu And you all know The Ohio Supercomputer Center djh@ohstpy.bitnet security Is mortals' Columbus, Ohio 43212 ohstpy::djh chiefest enemy.