[log in to unmask] writes:
> Richard Maine writes:
> > [log in to unmask] writes:
> > > What I would really like is a way to point a complex array at real and
> > > imaginary components, and vice-versa. That would eliminate all data
> > > motion. That was the game we could play in F77. A real array with
> > > size 2*N could be passed to a subroutine and received as a complex
> > > array of size N.
...
> > You could presumably equivalence the real to a complex array...
...
> I guess it wasn't legal in F77, but it "always worked". Jan has shown
> me a better way, though.
Yes, Jan's is the same basic concept that I was alluding to above, but Jan
spelled it out more explicitly. It isn't a cure-all - there are cases
where you can't equivalence, but it is fine for some situations.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|